]> 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>
Thu, 4 Jan 2018 14:00:39 +0000 (15:00 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h

index 1f303454addf0d9589409e6252005ae89eb72cac..6f2dd0d2790fb7dcfcb5729f790317f6bf466648 100644 (file)
@@ -3471,7 +3471,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) {
@@ -3479,6 +3480,7 @@ static int lxc_free_idmap(struct lxc_list *id_map) {
                free(it->elem);
                free(it);
        }
+
        return 0;
 }
 
index 806a15733137971839a7e13315425f83cbf1f97e..58c6c4d1b33a7401e49794015ccb601a12528775 100644 (file)
@@ -284,9 +284,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;