From d3934dccb98e07425c861ad646e844f7ab8006a6 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 24 Nov 2018 11:46:28 +0100 Subject: [PATCH] Add missing const in prototypes. --- m-bptree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-bptree.h b/m-bptree.h index cae1b18e..1d6fa922 100644 --- a/m-bptree.h +++ b/m-bptree.h @@ -400,7 +400,7 @@ return n; \ } \ \ - static inline value_t *M_C(name, _get)(tree_t b, key_t const key) \ + static inline value_t *M_C(name, _get)(const tree_t b, key_t const key) \ { \ BPTREEI_CONTRACT(N, key_oplist, b); \ pit_t pit; \ @@ -415,7 +415,7 @@ return NULL; \ } \ \ - static inline const value_t *M_C(name, _cget)(tree_t b, key_t const key) \ + static inline const value_t *M_C(name, _cget)(const tree_t b, key_t const key) \ { \ return M_CONST_CAST(value_t, M_C(name, _get)(b, key)); \ } \