diff options
author | Jan Safranek <jsafrane@redhat.com> | 2010-03-08 12:46:11 +0100 |
---|---|---|
committer | Dhaval Giani <dhaval.giani@gmail.com> | 2010-03-08 15:02:36 +0100 |
commit | af7cc3eae42167928ff5ef568585db48d73eb93a (patch) | |
tree | 582de4483b4e6c68108cc41fa89cf69380a18a31 /src/api.c | |
parent | bd25620e502f6bc5f45705602eaf1c6530f70b97 (diff) | |
download | libcg-af7cc3eae42167928ff5ef568585db48d73eb93a.tar.gz libcg-af7cc3eae42167928ff5ef568585db48d73eb93a.tar.xz libcg-af7cc3eae42167928ff5ef568585db48d73eb93a.zip |
Make the error stings const
Make the error stings const, just to be safe.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Diffstat (limited to 'src/api.c')
-rw-r--r-- | src/api.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ static pthread_rwlock_t rl_lock = PTHREAD_RWLOCK_INITIALIZER; /* Namespace */ __thread char *cg_namespace_table[CG_CONTROLLER_MAX]; -char *cgroup_strerror_codes[] = { +const char const *cgroup_strerror_codes[] = { "Cgroup is not compiled in", "Cgroup is not mounted", "Cgroup does not exist", @@ -2512,7 +2512,7 @@ cleanup_path: return ret; } -char *cgroup_strerror(int code) +const char *cgroup_strerror(int code) { if (code == ECGOTHER) { return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN); |