From: Jérémie Galarneau Date: Tue, 14 Jun 2016 16:46:02 +0000 (-0400) Subject: Use bool type for save command options X-Git-Tag: v2.9.0-rc1~123 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=c431d5e414452126947ddf3a20230a8105376f37;hp=dff33dda6bf1e0d5a9ca7d0f84eddb71def4c1bd;p=lttng-tools.git Use bool type for save command options Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/save.c b/src/bin/lttng/commands/save.c index 958d1afc5..ee3e17c66 100644 --- a/src/bin/lttng/commands/save.c +++ b/src/bin/lttng/commands/save.c @@ -29,8 +29,8 @@ #include static char *opt_output_path; -static int opt_force; -static int opt_save_all; +static bool opt_force; +static bool opt_save_all; static struct mi_writer *writer; enum { @@ -134,10 +134,10 @@ int cmd_save(int argc, const char **argv) SHOW_HELP(); goto end; case OPT_ALL: - opt_save_all = 1; + opt_save_all = true; break; case OPT_FORCE: - opt_force = 1; + opt_force = true; break; case OPT_LIST_OPTIONS: list_cmd_options(stdout, save_opts); @@ -154,7 +154,7 @@ int cmd_save(int argc, const char **argv) DBG2("Session name: %s", session_name); } else { /* default to opt_save_all */ - opt_save_all = 1; + opt_save_all = true; } }