conf: non-functional changes

parent c9d3f3aa
...@@ -3322,7 +3322,8 @@ int lxc_clear_config_caps(struct lxc_conf *c) ...@@ -3322,7 +3322,8 @@ int lxc_clear_config_caps(struct lxc_conf *c)
return 0; 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; struct lxc_list *it, *next;
lxc_list_for_each_safe(it, id_map, next) { lxc_list_for_each_safe(it, id_map, next) {
...@@ -3330,6 +3331,7 @@ static int lxc_free_idmap(struct lxc_list *id_map) { ...@@ -3330,6 +3331,7 @@ static int lxc_free_idmap(struct lxc_list *id_map) {
free(it->elem); free(it->elem);
free(it); free(it);
} }
return 0; return 0;
} }
......
...@@ -211,9 +211,11 @@ struct lxc_conf { ...@@ -211,9 +211,11 @@ struct lxc_conf {
struct lxc_list cgroup; struct lxc_list cgroup;
struct { struct {
struct lxc_list id_map; struct lxc_list id_map;
/* Pointer to the idmap entry for the container's root uid in /* Pointer to the idmap entry for the container's root uid in
* the id_map list. Do not free! */ * the id_map list. Do not free! */
struct id_map *root_nsuid_map; struct id_map *root_nsuid_map;
/* Pointer to the idmap entry for the container's root gid in /* Pointer to the idmap entry for the container's root gid in
* the id_map list. Do not free! */ * the id_map list. Do not free! */
struct id_map *root_nsgid_map; struct id_map *root_nsgid_map;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment