]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: make close_all_fds a boolean
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 26 May 2018 10:52:09 +0000 (12:52 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 26 May 2018 10:52:09 +0000 (12:52 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.h
src/lxc/tools/arguments.h
src/lxc/tools/lxc_start.c

index cc6bda7804e3e6a6091eb9c30f32f4bfed2e6a16..8dfc0dc9661ec98b722651f9ada06e1d65d086dd 100644 (file)
@@ -254,7 +254,7 @@ struct lxc_conf {
        struct lxc_terminal console;
        struct lxc_rootfs rootfs;
        char *ttydir;
-       int close_all_fds;
+       bool close_all_fds;
 
        struct {
                unsigned int hooks_version;
index 15941bcc396b6cb4a3fc0795da9bfcb02bf225c8..788f056e3454c58d5f26dbc6f463ba2e916ef476 100644 (file)
@@ -83,7 +83,7 @@ struct lxc_arguments {
        int force;
 
        /* close fds from parent? */
-       int close_all_fds;
+       bool close_all_fds;
 
        /* lxc-create */
        char *bdevtype, *configfile, *template;
index 1a68453f85eaaeb4a28dc2de297579f295181ddb..a4217736eea1ae061c36e7a033fa8d390cabb6ae 100644 (file)
@@ -96,7 +96,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
                args->rcfile = arg;
                break;
        case 'C':
-               args->close_all_fds = 1;
+               args->close_all_fds = true;
                break;
        case 's':
                return lxc_config_define_add(&defines, arg);