Skip to content

Commit

Permalink
conf: non-functional changes
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jan 4, 2018
1 parent a19b974 commit c7e345a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lxc/conf.c
Expand Up @@ -3471,14 +3471,16 @@ 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) {
lxc_list_del(it);
free(it->elem);
free(it);
}

return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions src/lxc/conf.h
Expand Up @@ -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;
Expand Down

0 comments on commit c7e345a

Please sign in to comment.