summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2010-03-08 12:46:11 +0100
committerDhaval Giani <dhaval.giani@gmail.com>2010-03-08 15:02:36 +0100
commitaf7cc3eae42167928ff5ef568585db48d73eb93a (patch)
tree582de4483b4e6c68108cc41fa89cf69380a18a31 /include
parentbd25620e502f6bc5f45705602eaf1c6530f70b97 (diff)
downloadlibcg-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 'include')
-rw-r--r--include/libcgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcgroup.h b/include/libcgroup.h
index 6a262e2..2cac820 100644
--- a/include/libcgroup.h
+++ b/include/libcgroup.h
@@ -288,7 +288,7 @@ int cgroup_get_current_controller_path(pid_t pid, const char *controller,
* @code: error code for which the corresponding error string is to be
* returned
*/
-char *cgroup_strerror(int code);
+const char *cgroup_strerror(int code);
/**
* Return last errno, which caused ECGOTHER error.