Size of an enum type is not guaranteed by the C spec, which is why the field's tpye is replaced to uin32_t.
Signed-off-by: Yannick Lamarre <ylama...@efficios.com> --- src/common/sessiond-comm/sessiond-comm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index 47ade871..c6ec8eed 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -768,7 +768,7 @@ struct lttcomm_consumer_channel_monitor_msg { * Status message returned to the sessiond after a received command. */ struct lttcomm_consumer_status_msg { - enum lttcomm_return_code ret_code; + uint32_t ret_code; /* enum lttcomm_return_code */ } LTTNG_PACKED; struct lttcomm_consumer_status_channel { -- 2.11.0 _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev