From: Mathieu Desnoyers Date: Wed, 24 Oct 2018 19:43:49 +0000 (+0100) Subject: Fix: Add missing const to lttng_tracepoint_ptr_deref prototype X-Git-Tag: v2.11.0-rc2~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=80265be27c385f2b5852fa2f57f0607360622e1d;p=lttng-modules.git Fix: Add missing const to lttng_tracepoint_ptr_deref prototype Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/tracepoint.h b/wrapper/tracepoint.h index 23bc6e25..0c5a296f 100644 --- a/wrapper/tracepoint.h +++ b/wrapper/tracepoint.h @@ -113,7 +113,7 @@ static inline struct tracepoint *lttng_tracepoint_ptr_deref(tracepoint_ptr_t *p) return tracepoint_ptr_deref(p); } #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)) */ -static inline struct tracepoint *lttng_tracepoint_ptr_deref(struct tracepoint **p) +static inline struct tracepoint *lttng_tracepoint_ptr_deref(struct tracepoint * const *p) { return *p; }