X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdisable_rotation.c;h=47b7de7d7e78d6a66084fe6a51dd4fc8ca4df4df;hb=7d81aa9fff703f8fcf35f8ac426aa37d0ffffb16;hp=30dfaa1691db929295cce3cba2a0ef921fd06c57;hpb=66ea93b10c703e1b3dda1e17109eed9138e4ece2;p=lttng-tools.git diff --git a/src/bin/lttng/commands/disable_rotation.c b/src/bin/lttng/commands/disable_rotation.c index 30dfaa169..47b7de7d7 100644 --- a/src/bin/lttng/commands/disable_rotation.c +++ b/src/bin/lttng/commands/disable_rotation.c @@ -225,7 +225,7 @@ int cmd_disable_rotation(int argc, const char **argv) pc = poptGetContext(NULL, argc, argv, long_options, 0); popt_ret = poptReadDefaultConfig(pc, 0); if (popt_ret) { - ret = CMD_ERROR; + cmd_ret = CMD_ERROR; ERR("poptReadDefaultConfig"); goto end; } @@ -245,7 +245,7 @@ int cmd_disable_rotation(int argc, const char **argv) size_rotation = true; break; default: - ret = CMD_UNDEFINED; + cmd_ret = CMD_UNDEFINED; goto end; } } @@ -313,7 +313,7 @@ int cmd_disable_rotation(int argc, const char **argv) } if (size_rotation) { - enum lttng_error_code tmp_ret; + enum cmd_error_code tmp_ret; /* Don't overwrite cmd_ret if it already indicates an error. */ tmp_ret = remove_schedule(session_name,