From: Christian Brauner Date: Sat, 17 Feb 2018 18:08:38 +0000 (+0100) Subject: cgfsng: controller_lists_intersect() X-Git-Tag: lxc-3.0.0.beta1~22^2~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0089ae6182402ad3ac9dbf3529077f0218de9b;p=thirdparty%2Flxc.git cgfsng: controller_lists_intersect() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index bdb6f666b..b67f41a81 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -773,9 +773,8 @@ static bool cg_legacy_handle_cpuset_hierarchy(struct hierarchy *h, char *cgname) return true; } -/* - * Given two null-terminated lists of strings, return true if any string - * is in both. +/* Given two null-terminated lists of strings, return true if any string is in + * both. */ static bool controller_lists_intersect(char **l1, char **l2) { @@ -788,6 +787,7 @@ static bool controller_lists_intersect(char **l1, char **l2) if (string_in_list(l2, l1[i])) return true; } + return false; }