Commit 8edcba11 by Daniel Lezcano Committed by Daniel Lezcano

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: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 429a84f4
...@@ -140,7 +140,7 @@ static int get_cgroup_flags(const char *mtab, int *flags) ...@@ -140,7 +140,7 @@ static int get_cgroup_flags(const char *mtab, int *flags)
return err; 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]; char oldname[MAXPATHLEN];
...@@ -232,7 +232,7 @@ int lxc_cgroup_create(const char *name, pid_t pid) ...@@ -232,7 +232,7 @@ int lxc_cgroup_create(const char *name, pid_t pid)
/* We have the deprecated ns_cgroup subsystem */ /* We have the deprecated ns_cgroup subsystem */
if (flags & CGROUP_NS_CGROUP) { if (flags & CGROUP_NS_CGROUP) {
WARN("using deprecated 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 /* we check if the kernel has clone_children, at this point if there
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment