From f0131b2c39b66fa919f37dfa7865db6dad825b77 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 20 Jun 2018 23:25:25 +0200 Subject: [PATCH] Fix prototype of _front: missing const. --- m-prioqueue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m-prioqueue.h b/m-prioqueue.h index 336b6b1d..e426e883 100644 --- a/m-prioqueue.h +++ b/m-prioqueue.h @@ -37,7 +37,7 @@ ((name, __VA_ARGS__, M_GLOBAL_OPLIST_OR_DEF(__VA_ARGS__), M_C(name,_t), M_C(name,_it_t) ), \ (name, __VA_ARGS__, M_C(name,_t), M_C(name,_it_t)))) -/* Define the oplist of an prioqueue of type. +/* Define the oplist of a prioqueue of type. USAGE: PRIOQUEUE_OPLIST(name[, oplist of the type]) */ #define PRIOQUEUE_OPLIST(...) \ PRIOQUEUEI_OPLIST(M_IF_NARGS_EQ1(__VA_ARGS__) \ @@ -180,10 +180,10 @@ } \ } \ \ - static inline type * \ + static inline const type * \ M_C(name, _front)(prioqueue_t p) \ { \ - return M_C(name, _array_get)(p->array, 0); \ + return M_C(name, _array_cget)(p->array, 0); \ } \ \ static inline void \