From: Jérémie Galarneau Date: Fri, 17 Aug 2018 00:47:42 +0000 (-0400) Subject: Fix: use negative code for errors in enum X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=0e5e4beb5ab69ee57134ec704f850f37a48cb48b Fix: use negative code for errors in enum Signed-off-by: Jérémie Galarneau --- 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 {