From: Jérémie Galarneau Date: Thu, 5 Sep 2019 00:22:20 +0000 (-0400) Subject: Fix: mismatch of ust_app_get_size_one_more_packet_per_stream prototype X-Git-Tag: v2.11.0-rc3~31 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ca00a20c0f83c9dd9d6709cbeeee92eb880c3c6f;p=lttng-tools.git Fix: mismatch of ust_app_get_size_one_more_packet_per_stream prototype The stub of ust_app_get_size_one_more_packet_per_stream() used when building without lttng-ust support does not match the actual prototype defined in ust-app.h. The ltt_ust_session pointer parameter must be marked as const. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-app.h b/src/bin/lttng-sessiond/ust-app.h index 47eea9cac..a385cfcd3 100644 --- a/src/bin/lttng-sessiond/ust-app.h +++ b/src/bin/lttng-sessiond/ust-app.h @@ -563,7 +563,7 @@ struct ust_app *ust_app_find_by_pid(pid_t pid) } static inline uint64_t ust_app_get_size_one_more_packet_per_stream( - struct ltt_ust_session *usess, uint64_t cur_nr_packets) { + const struct ltt_ust_session *usess, uint64_t cur_nr_packets) { return 0; } static inline