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);
while (cmd->name != nullptr) {
if (strcmp(cmd->name, arg_cmd_name) == 0) {
- found = 1;
+ found = true;
break;
}