From: Marc-Andre Laperle Date: Tue, 4 Feb 2014 19:40:50 +0000 (-0500) Subject: Fix: use uint32_t for metadata_flag in viewer's ABI X-Git-Tag: v2.5.0-rc1~207 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=94143186269a93973df9c0710736bf344cf1c6ea;p=lttng-tools.git Fix: use uint32_t for metadata_flag in viewer's ABI This struct is meant to be sent over the network so members should be of exact-width. Signed-off-by: Marc-Andre Laperle Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/lttng-viewer-abi.h b/src/bin/lttng-relayd/lttng-viewer-abi.h index e1ea8a3e5..fe491cc2b 100644 --- a/src/bin/lttng-relayd/lttng-viewer-abi.h +++ b/src/bin/lttng-relayd/lttng-viewer-abi.h @@ -117,7 +117,7 @@ struct lttng_viewer_session { struct lttng_viewer_stream { uint64_t id; uint64_t ctf_trace_id; - int metadata_flag; + uint32_t metadata_flag; char path_name[LTTNG_VIEWER_PATH_MAX]; char channel_name[LTTNG_VIEWER_NAME_MAX]; } __attribute__((__packed__));