From mboxrd@z Thu Jan 1 00:00:00 1970 From: ylamarre@efficios.com (Yannick Lamarre) Date: Thu, 18 Apr 2019 12:18:34 -0400 Subject: [lttng-dev] [RFC PATCH lttng-tools 02/18] Clean-up: Switch enum fields in lttcomm_consumer_msg In-Reply-To: <20190418161850.1536-1-ylamarre@efficios.com> References: <20190418161850.1536-1-ylamarre@efficios.com> Message-ID: <20190418161850.1536-3-ylamarre@efficios.com> Signed-off-by: Yannick Lamarre --- src/common/sessiond-comm/sessiond-comm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index 556c277f..43a57736 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -564,7 +564,7 @@ struct lttcomm_consumer_msg { uint32_t nb_init_streams; char name[LTTNG_SYMBOL_NAME_LEN]; /* Use splice or mmap to consume this fd */ - enum lttng_event_output output; + uint32_t output; /* enum lttng_event_output */ int type; /* Per cpu or metadata. */ uint64_t tracefile_size; /* bytes */ uint32_t tracefile_count; /* number of tracefiles */ @@ -591,7 +591,7 @@ struct lttcomm_consumer_msg { } LTTNG_PACKED stream; /* Only used by Kernel. */ struct { uint64_t net_index; - enum lttng_stream_type type; + uint32_t type; /* enum lttng_stream_type */ /* Open socket to the relayd */ struct lttcomm_relayd_sock_serialized sock; /* Tracing session id associated to the relayd. */ -- 2.11.0