From 62140c46822fb8ec5122a8624543c94c913d222c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 30 Aug 2018 15:42:41 -0400 Subject: [PATCH 1/1] Fix: ret variable is used instead of cmd_ret in disable-rotation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/disable_rotation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.34.1