Clean-up: replace uses of `int found` as bool by `bool found`
[lttng-tools.git] / src / bin / lttng / commands / help.cpp
index 00af516de0129bef113303e0853738e057b06c5f..57b73a6b0a94198d90fdda62c68afb58ba4c8780 100644 (file)
@@ -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;
                }
 
This page took 0.022872 seconds and 4 git commands to generate.