From: Christian Brauner Date: Sat, 17 Feb 2018 18:47:23 +0000 (+0100) Subject: cgfsng: cg_legacy_set_data() X-Git-Tag: lxc-3.0.0.beta1~22^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90e9728449bf9225bbd2a2e559f2b498850f5d6a;p=thirdparty%2Flxc.git cgfsng: cg_legacy_set_data() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 5dee010de..a9eed90a9 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2682,15 +2682,14 @@ out: return ret; } -/* - * Called from setup_limits - here we have the container's cgroup_data because - * we created the cgroups +/* Called from setup_limits - here we have the container's cgroup_data because + * we created the cgroups. */ static int cg_legacy_set_data(const char *filename, const char *value, struct cgfsng_handler_data *d) { - char *fullpath, *p; size_t len; + char *fullpath, *p; /* "b|c <2^64-1>:<2^64-1> r|w|m" = 47 chars max */ char converted_value[50]; struct hierarchy *h;