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

index 5dee010de9e19c4309058595e4b8f3517f991175..a9eed90a97b478de5467af90d5dfa16c70253ff6 100644 (file)
@@ -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;