summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-03-24 21:04:22 +0100
committerDhaval Giani <dhaval.giani@gmail.com>2010-03-26 12:56:44 +0100
commit162e7612f623fe69437ef258b033e4c1518a5cc8 (patch)
treed94d1a0b471b3c030af17302ae8de4c9dc9d159d
parentb6293458cd5ce11b9f53eff8101f20d09d5da341 (diff)
downloadlibcg-162e7612f623fe69437ef258b033e4c1518a5cc8.tar.gz
libcg-162e7612f623fe69437ef258b033e4c1518a5cc8.tar.xz
libcg-162e7612f623fe69437ef258b033e4c1518a5cc8.zip
unexport a couple of variables that don't need to be exported
Signed-off-by: Lennart Poettering <lennart@poettering.net> Acked-by: Dhaval Giani <dhaval.giani@gmail.com> Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
-rw-r--r--src/api.c2
-rw-r--r--src/config.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api.c b/src/api.c
index 947d25c..41f6d3e 100644
--- a/src/api.c
+++ b/src/api.c
@@ -60,7 +60,7 @@ __thread int last_errno;
#define MAXLEN 256
/* the value have to be thread specific */
-__thread char errtext[MAXLEN];
+static __thread char errtext[MAXLEN];
/* Task command name length */
#define TASK_COMM_LEN 16
diff --git a/src/config.c b/src/config.c
index b6be503..9c62b01 100644
--- a/src/config.c
+++ b/src/config.c
@@ -65,7 +65,7 @@ static int namespace_table_index;
static pthread_rwlock_t config_table_lock = PTHREAD_RWLOCK_INITIALIZER;
static pthread_rwlock_t namespace_table_lock = PTHREAD_RWLOCK_INITIALIZER;
static struct cgroup config_cgroup_table[MAX_CGROUPS];
-int cgroup_table_index;
+static int cgroup_table_index;
/*
* Needed for the type while mounting cgroupfs.