X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fhelp.cpp;fp=src%2Fbin%2Flttng%2Fcommands%2Fhelp.cpp;h=57b73a6b0a94198d90fdda62c68afb58ba4c8780;hp=00af516de0129bef113303e0853738e057b06c5f;hb=ff01a57416330247403e58bf4e28d4771a46ce35;hpb=2397268a583deb18a90ed2f76a95c6c6d46174f9 diff --git a/src/bin/lttng/commands/help.cpp b/src/bin/lttng/commands/help.cpp index 00af516de..57b73a6b0 100644 --- a/src/bin/lttng/commands/help.cpp +++ b/src/bin/lttng/commands/help.cpp @@ -50,7 +50,7 @@ int cmd_help(int argc, const char **argv, const struct cmd_struct commands[]) const char *arg_cmd_name; static poptContext pc; const struct cmd_struct *cmd; - int found = 0; + bool found = false; const char *cmd_argv[2]; pc = poptGetContext(nullptr, argc, argv, long_options, 0); @@ -95,7 +95,7 @@ int cmd_help(int argc, const char **argv, const struct cmd_struct commands[]) while (cmd->name != nullptr) { if (strcmp(cmd->name, arg_cmd_name) == 0) { - found = 1; + found = true; break; }