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.9.11~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ef6a4264e306e65a815fb8abef3c769034320093;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 a860cb82..f930a5a0 100644 --- a/wrapper/tracepoint.h +++ b/wrapper/tracepoint.h @@ -126,7 +126,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; }