From: Daniel Lezcano Date: Thu, 13 Jan 2011 15:15:15 +0000 (+0100) Subject: set function static X-Git-Tag: lxc-0.7.4-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8edcba11e9c24f7ba46d79518abee5bb13442256;p=thirdparty%2Flxc.git 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 --- 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