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.11.0-rc3~32 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=cfae5b6d07c7e2752f71820cc61fdf85f4935138;hp=9303542eaae40f285dac0b029b472389c637aaf5;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; }