[master] 4c8fb8628 vtree: Finish NFIND constification
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Apr 17 14:18:05 UTC 2025
commit 4c8fb86287a0e9c9ebe066bc5e69b586f39bcb39
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Thu Apr 17 16:14:28 2025 +0200
vtree: Finish NFIND constification
Spotted by Nils.
Refs 956d529fb8236596e3bd2c01e78e4dac9ec13b27
diff --git a/include/vtree.h b/include/vtree.h
index 2d9cdf9cd..7296b48d6 100644
--- a/include/vtree.h
+++ b/include/vtree.h
@@ -885,7 +885,7 @@ name##_VRBT_FIND(const struct name *head, const struct type *elm) \
#define VRBT_GENERATE_NFIND(name, type, field, cmp, attr) \
/* Finds the first node greater than or equal to the search key */ \
attr struct type * \
-name##_VRBT_NFIND(struct name *head, struct type *elm) \
+name##_VRBT_NFIND(const struct name *head, const struct type *elm) \
{ \
struct type *tmp = VRBT_ROOT(head); \
struct type *res = NULL; \
More information about the varnish-commit
mailing list