Add const to function definition.

This commit is contained in:
Patrick Pelissier committed 2017-07-08 12:57:06 +02:00
1 parent 138d3fe4eb
commit 2ef2dd1231
1 file changed
+2 -2
+2 -2
View File
@@ -404,7 +404,7 @@
} \
\
static inline M_C3(dict_pair_,name,_t) * \
M_C3(dict_, name, _ref)(dict_it_t it) \
M_C3(dict_, name, _ref)(const dict_it_t it) \
{ \
assert(it != NULL); \
/* NOTE: partially unsafe if the user modify the 'key'. */ \
@@ -1128,7 +1128,7 @@ typedef enum {
\
/* FIXME: Wrong level of indirection compared to std dict? */ \
static inline M_C3(dict_pair_,name,_t) * \
M_C3(dict_, name, _ref)(dict_it_t it) \
M_C3(dict_, name, _ref)(const dict_it_t it) \
{ \
assert (it != NULL); \
DICTI_OA_CONTRACT (it -> dict); \