From 0e5e4beb5ab69ee57134ec704f850f37a48cb48b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 16 Aug 2018 20:47:42 -0400 Subject: [PATCH] Fix: use negative code for errors in enum MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- include/lttng/rotation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lttng/rotation.h b/include/lttng/rotation.h index d13f3641a..a8df4e682 100644 --- a/include/lttng/rotation.h +++ b/include/lttng/rotation.h @@ -57,7 +57,7 @@ enum lttng_rotation_state { /* * The rotation could not be completed due to an error. */ - LTTNG_ROTATION_STATE_ERROR = 4, + LTTNG_ROTATION_STATE_ERROR = -1, }; enum lttng_rotation_status { -- 2.34.1