]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
set function static
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 13 Jan 2011 15:15:15 +0000 (16:15 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 13 Jan 2011 15:15:15 +0000 (16:15 +0100)
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>
src/lxc/cgroup.c

index c1404fe373b62a4fe3eacd1379d3fad3662fd6c0..f89749926e29b3c504260256c5fb04b6afcab7f9 100644 (file)
@@ -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