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-Tag: v2.11.0-rc1~152 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0e5e4beb5ab69ee57134ec704f850f37a48cb48b;p=lttng-tools.git 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 {