From 1f4fc77013a97e2a0df92d86d0ea9f2a639ed65f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 4 Sep 2019 20:22:20 -0400 Subject: [PATCH] Fix: mismatch of ust_app_get_size_one_more_packet_per_stream prototype MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-sessiond/ust-app.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1