]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 2 Jun 2017 22:39:28 +0000 (00:39 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 2 Jun 2017 22:41:57 +0000 (00:41 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/lxccontainer.c

index ef0693967d546e58789b8cb3c7e557c407441e78..bfcd9d378ef9cd85b2082e01d4dacdcdddcea0ed 100644 (file)
@@ -3618,7 +3618,7 @@ int mapped_hostid(unsigned id, struct lxc_conf *conf, enum idtype idtype)
        return -1;
 }
 
-int find_unmapped_nsuid(struct lxc_conf *conf, enum idtype idtype)
+int find_unmapped_nsid(struct lxc_conf *conf, enum idtype idtype)
 {
        struct lxc_list *it;
        struct id_map *map;
@@ -4684,7 +4684,7 @@ static int run_userns_fn(void *data)
        return d->fn(d->arg);
 }
 
-static struct id_map *mapped_hostid_entry(unsigned id, struct lxc_conf *conf,
+static struct id_map *mapped_hostid_entry(struct lxc_conf *conf, unsigned id,
                                          enum idtype idtype)
 {
        struct lxc_list *it;
index ff6747c0e4259cf9652fd5dfc4163ee7cac664cf..9033a1a53845f75db14d0a7541b4c9db45e24c40 100644 (file)
@@ -469,7 +469,7 @@ extern int setup_resource_limits(struct lxc_list *limits, pid_t pid);
 
 extern void lxc_restore_phys_nics_to_netns(int netnsfd, struct lxc_conf *conf);
 
-extern int find_unmapped_nsuid(struct lxc_conf *conf, enum idtype idtype);
+extern int find_unmapped_nsid(struct lxc_conf *conf, enum idtype idtype);
 extern int mapped_hostid(unsigned id, struct lxc_conf *conf, enum idtype idtype);
 extern int chown_mapped_root(char *path, struct lxc_conf *conf);
 extern int ttys_shift_ids(struct lxc_conf *c);
index 98452024983c44820ae567aa6dda1af5f6813488..f93fdfc9536daae06bcff155a36315ad13e9cfc0 100644 (file)
@@ -1220,7 +1220,7 @@ static bool create_run_template(struct lxc_container *c, char *tpath, bool need_
                        if (!n2)
                                exit(1);
                        if (hostid_mapped < 0) {
-                               hostid_mapped = find_unmapped_nsuid(conf, ID_TYPE_UID);
+                               hostid_mapped = find_unmapped_nsid(conf, ID_TYPE_UID);
                                n2[n2args++] = "-m";
                                if (hostid_mapped < 0) {
                                        ERROR("Could not find free uid to map");
@@ -1244,7 +1244,7 @@ static bool create_run_template(struct lxc_container *c, char *tpath, bool need_
                        if (!n2)
                                exit(1);
                        if (hostgid_mapped < 0) {
-                               hostgid_mapped = find_unmapped_nsuid(conf, ID_TYPE_GID);
+                               hostgid_mapped = find_unmapped_nsid(conf, ID_TYPE_GID);
                                n2[n2args++] = "-m";
                                if (hostgid_mapped < 0) {
                                        ERROR("Could not find free uid to map");