summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.