Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
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) {
free(it->elem);
free(it);
}
+
return 0;
}
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;