From: Jérémie Galarneau Date: Thu, 5 Sep 2019 00:20:00 +0000 (-0400) Subject: Fix: mismatch of ust_app_snapshot_record prototype X-Git-Tag: v2.12.0-rc1~464 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3637639a75795ff18c0daf7d579eaa57608e7a14;p=lttng-tools.git Fix: mismatch of ust_app_snapshot_record prototype The stub of ust_app_snapshot_record() used when building without lttng-ust support does not match the actual prototype defined in ust-app.h. The consumer_output 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 89d97309f..47eea9cac 100644 --- a/src/bin/lttng-sessiond/ust-app.h +++ b/src/bin/lttng-sessiond/ust-app.h @@ -536,7 +536,7 @@ void ust_app_destroy(struct ust_app *app) } static inline enum lttng_error_code ust_app_snapshot_record(struct ltt_ust_session *usess, - struct consumer_output *output, int wait, uint64_t max_stream_size) + const struct consumer_output *output, int wait, uint64_t max_stream_size) { return 0; }