From: Jérémie Galarneau Date: Fri, 24 Aug 2018 01:10:28 +0000 (-0400) Subject: Fix: mix of lttng_error_code and cmd_error_code enums X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=a14a81cb954e6387489166860ef90fd7412f722b Fix: mix of lttng_error_code and cmd_error_code enums 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 30dfaa169..2ea4a06ba 100644 --- a/src/bin/lttng/commands/disable_rotation.c +++ b/src/bin/lttng/commands/disable_rotation.c @@ -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, diff --git a/src/bin/lttng/commands/enable_rotation.c b/src/bin/lttng/commands/enable_rotation.c index 3c2bd787e..918662661 100644 --- a/src/bin/lttng/commands/enable_rotation.c +++ b/src/bin/lttng/commands/enable_rotation.c @@ -296,7 +296,7 @@ int cmd_enable_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 = add_schedule(session_name,