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.12.0-pre~108 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=61259e636a25743222297254b4d212017636451a;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; }