[lttng-dev] [RFC PATCH lttng-tools v2 04/20] Clean-up: Switch enum fields in lttcomm_consumer_status_channel
Yannick Lamarre
ylamarre at efficios.com
Wed May 1 15:34:28 EDT 2019
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 <ylamarre at 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 c6ec8eed..84d87808 100644
--- a/src/common/sessiond-comm/sessiond-comm.h
+++ b/src/common/sessiond-comm/sessiond-comm.h
@@ -772,7 +772,7 @@ struct lttcomm_consumer_status_msg {
} LTTNG_PACKED;
struct lttcomm_consumer_status_channel {
- enum lttcomm_return_code ret_code;
+ uint32_t ret_code; /* enum lttcomm_return_code */
uint64_t key;
unsigned int stream_count;
} LTTNG_PACKED;
--
2.11.0
More information about the lttng-dev
mailing list