Fix: ret variable is used instead of cmd_ret in disable-rotation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 19:42:41 +0000 (15:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 19:42:49 +0000 (15:42 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/disable_rotation.c

index 2ea4a06bad2d381b99d6891b4e2140118eb1446c..47b7de7d7e78d6a66084fe6a51dd4fc8ca4df4df 100644 (file)
@@ -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;
                }
        }
This page took 0.033872 seconds and 4 git commands to generate.