conf: make close_all_fds a boolean

parent 443a29a8
...@@ -254,7 +254,7 @@ struct lxc_conf { ...@@ -254,7 +254,7 @@ struct lxc_conf {
struct lxc_terminal console; struct lxc_terminal console;
struct lxc_rootfs rootfs; struct lxc_rootfs rootfs;
char *ttydir; char *ttydir;
int close_all_fds; bool close_all_fds;
struct { struct {
unsigned int hooks_version; unsigned int hooks_version;
......
...@@ -83,7 +83,7 @@ struct lxc_arguments { ...@@ -83,7 +83,7 @@ struct lxc_arguments {
int force; int force;
/* close fds from parent? */ /* close fds from parent? */
int close_all_fds; bool close_all_fds;
/* lxc-create */ /* lxc-create */
char *bdevtype, *configfile, *template; char *bdevtype, *configfile, *template;
......
...@@ -96,7 +96,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg) ...@@ -96,7 +96,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
args->rcfile = arg; args->rcfile = arg;
break; break;
case 'C': case 'C':
args->close_all_fds = 1; args->close_all_fds = true;
break; break;
case 's': case 's':
return lxc_config_define_add(&defines, arg); return lxc_config_define_add(&defines, arg);
......
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