From c431d5e414452126947ddf3a20230a8105376f37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 14 Jun 2016 12:46:02 -0400 Subject: [PATCH] Use bool type for save command options MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/save.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } } -- 2.34.1