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.12.0-rc1~463 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=1f4fc77013a97e2a0df92d86d0ea9f2a639ed65f 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