diff options
author | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-01-13 16:15:15 +0100 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2011-01-13 16:15:15 +0100 |
commit | 8edcba11e9c24f7ba46d79518abee5bb13442256 (patch) | |
tree | db8f5f3dc0aef42c6e13496e07c55006d4858fe7 | |
parent | fix cgroup directory removal (diff) | |
download | lxc-8edcba11e9c24f7ba46d79518abee5bb13442256.tar.gz lxc-8edcba11e9c24f7ba46d79518abee5bb13442256.tar.bz2 lxc-8edcba11e9c24f7ba46d79518abee5bb13442256.zip |
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 <dlezcano@fr.ibm.com>
-rw-r--r-- | src/lxc/cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index c1404fe..f897499 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 |