From 8edcba11e9c24f7ba46d79518abee5bb13442256 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 13 Jan 2011 16:15:15 +0100 Subject: [PATCH] set function static Set the function prototype to static as it is not exported and used somewhere else in the code than this file. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index c1404fe37..f89749926 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -140,7 +140,7 @@ static int get_cgroup_flags(const char *mtab, int *flags) return err; } -int lxc_rename_nsgroup(const char *mnt, const char *name, pid_t pid) +static int cgroup_rename_nsgroup(const char *mnt, const char *name, pid_t pid) { char oldname[MAXPATHLEN]; @@ -232,7 +232,7 @@ int lxc_cgroup_create(const char *name, pid_t pid) /* We have the deprecated ns_cgroup subsystem */ if (flags & CGROUP_NS_CGROUP) { WARN("using deprecated ns_cgroup"); - return lxc_rename_nsgroup(cgmnt, cgname, pid); + return cgroup_rename_nsgroup(cgmnt, cgname, pid); } /* we check if the kernel has clone_children, at this point if there -- 2.47.2