From: Jérémie Galarneau Date: Thu, 30 Aug 2018 19:42:41 +0000 (-0400) Subject: Fix: ret variable is used instead of cmd_ret in disable-rotation X-Git-Tag: v2.11.0-rc1~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=62140c46822fb8ec5122a8624543c94c913d222c;p=lttng-tools.git Fix: ret variable is used instead of cmd_ret in disable-rotation Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/disable_rotation.c b/src/bin/lttng/commands/disable_rotation.c index 2ea4a06ba..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; } }