]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 4 Jan 2018 13:59:42 +0000 (14:59 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 19 Jan 2018 13:30:49 +0000 (14:30 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h

index 85648b10b41828007cd1fce8c97767c1eee9199b..3b63ad3fad0e06e64baef7686f5bf60eb06c1855 100644 (file)
@@ -3322,7 +3322,8 @@ int lxc_clear_config_caps(struct lxc_conf *c)
        return 0;
 }
 
-static int lxc_free_idmap(struct lxc_list *id_map) {
+static int lxc_free_idmap(struct lxc_list *id_map)
+{
        struct lxc_list *it, *next;
 
        lxc_list_for_each_safe(it, id_map, next) {
@@ -3330,6 +3331,7 @@ static int lxc_free_idmap(struct lxc_list *id_map) {
                free(it->elem);
                free(it);
        }
+
        return 0;
 }
 
index f010c567a1742cd571f6ed71347e092d7a28f5c1..0286be02862d7427ba8dfa9bb9755f858d57289b 100644 (file)
@@ -211,9 +211,11 @@ struct lxc_conf {
        struct lxc_list cgroup;
        struct {
                struct lxc_list id_map;
+
                /* Pointer to the idmap entry for the container's root uid in
                 * the id_map list. Do not free! */
                struct id_map *root_nsuid_map;
+
                /* Pointer to the idmap entry for the container's root gid in
                 * the id_map list. Do not free! */
                struct id_map *root_nsgid_map;