From: Christian Brauner Date: Sat, 17 Feb 2018 18:10:49 +0000 (+0100) Subject: cgfsng: all_controllers_found() X-Git-Tag: lxc-2.0.10~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a119b01d86f7db329fab000ff292fea66fb79ad2;p=thirdparty%2Flxc.git cgfsng: all_controllers_found() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index cb6f63ba8..4e60224eb 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -817,14 +817,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"); @@ -835,7 +835,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;