[master] 26dfe252b Fix misplaced const.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Dec 13 09:43:06 UTC 2022
commit 26dfe252bc9282809cc525e720de5c2c69b2586f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Dec 13 09:42:27 2022 +0000
Fix misplaced const.
Fixes #3882
diff --git a/include/vtree.h b/include/vtree.h
index 66bfd44cc..d36233137 100644
--- a/include/vtree.h
+++ b/include/vtree.h
@@ -448,7 +448,7 @@ struct { \
#define VRBT_PROTOTYPE_INSERT(name, type, attr) \
attr struct type *name##_VRBT_INSERT(struct name *, struct type *)
#define VRBT_PROTOTYPE_FIND(name, type, attr) \
- attr const struct type *name##_VRBT_FIND(const struct name *, const struct type *)
+ attr struct type *name##_VRBT_FIND(const struct name *, const struct type *)
#define VRBT_PROTOTYPE_NFIND(name, type, attr) \
attr struct type *name##_VRBT_NFIND(struct name *, struct type *)
#define VRBT_PROTOTYPE_NEXT(name, type, attr) \
@@ -462,7 +462,7 @@ struct { \
attr struct type *name##_VRBT_INSERT_PREV(struct name *, \
struct type *, struct type *)
#define VRBT_PROTOTYPE_MINMAX(name, type, attr) \
- attr const struct type *name##_VRBT_MINMAX(struct name *, int)
+ attr struct type *name##_VRBT_MINMAX(const struct name *, int)
#define VRBT_PROTOTYPE_REINSERT(name, type, attr) \
attr struct type *name##_VRBT_REINSERT(struct name *, struct type *)
More information about the varnish-commit
mailing list