summaryrefslogtreecommitdiffstats
path: root/src/libcgroup-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-03-24 19:06:49 +0100
committerDhaval Giani <dhaval.giani@gmail.com>2010-03-26 12:56:43 +0100
commit127da29e9ab20a3be8096cbd7f7ff225a2ddd7b7 (patch)
treec06b98c7ddd7bd922cd049e4431872e6b6023f2e /src/libcgroup-internal.h
parentbdc36c15b77dd7db3720540efbd164899bee53c0 (diff)
downloadlibcg-127da29e9ab20a3be8096cbd7f7ff225a2ddd7b7.tar.gz
libcg-127da29e9ab20a3be8096cbd7f7ff225a2ddd7b7.tar.xz
libcg-127da29e9ab20a3be8096cbd7f7ff225a2ddd7b7.zip
add const where applicable, drop const where unnecessary
This patch adds the const qualifier to a number of function arguments (mostly string arguments) so that client libraries can pass their own const strings to the library without having to cast their const'ness away. This also drops a couple of consts where call-by-value is done anyway, and which hence has no effect and just misleads the users and adds unnecessary noise to the signal. After all this is C, not C++. 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>
Diffstat (limited to 'src/libcgroup-internal.h')
-rw-r--r--src/libcgroup-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcgroup-internal.h b/src/libcgroup-internal.h
index 55fa9fd..722bc65 100644
--- a/src/libcgroup-internal.h
+++ b/src/libcgroup-internal.h
@@ -133,7 +133,7 @@ struct cgroup_tree_handle {
extern __thread int last_errno;
/* Internal API */
-char *cg_build_path(char *name, char *path, char *type);
+char *cg_build_path(const char *name, char *path, const char *type);
int cgroup_get_uid_gid_from_procfs(pid_t pid, uid_t *euid, gid_t *egid);
int cgroup_get_procname_from_procfs(pid_t pid, char **procname);
int cg_mkdir_p(const char *path);