From a14a81cb954e6387489166860ef90fd7412f722b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 23 Aug 2018 21:10:28 -0400 Subject: [PATCH 1/1] Fix: mix of lttng_error_code and cmd_error_code enums 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 | 2 +- src/bin/lttng/commands/enable_rotation.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.34.1