]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: all_controllers_found()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:10:49 +0000 (19:10 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:10:49 +0000 (19:10 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index c1163227f4992041ff6553ecb769e34fa05cc081..44217e745d641746ff1c3eb0145169b4c3592308 100644 (file)
@@ -826,14 +826,14 @@ static bool controller_found(struct hierarchy **hlist, char *entry)
        return false;
 }
 
-/*
- * Return true if all of the controllers which we require have been found.
- * The required list is  freezer and anything in * lxc.cgroup.use.
+/* Return true if all of the controllers which we require have been found.  The
+ * required list is  freezer and anything in lxc.cgroup.use.
  */
 static bool all_controllers_found(void)
 {
-       char *p, *saveptr = NULL;
-       struct hierarchy ** hlist = hierarchies;
+       char *p;
+       char *saveptr = NULL;
+       struct hierarchy **hlist = hierarchies;
 
        if (!controller_found(hlist, "freezer")) {
                CGFSNG_DEBUG("No freezer controller mountpoint found\n");
@@ -844,7 +844,7 @@ static bool all_controllers_found(void)
                return true;
 
        for (p = strtok_r(cgroup_use, ",", &saveptr); p;
-                       p = strtok_r(NULL, ",", &saveptr)) {
+            p = strtok_r(NULL, ",", &saveptr)) {
                if (!controller_found(hlist, p)) {
                        CGFSNG_DEBUG("No %s controller mountpoint found\n", p);
                        return false;