X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fset.h;h=4dffecd39d9de947786c919c7eca17f63428d419;hb=6c00c6cee5a32b6af0e4c589d74c6974be50aa20;hp=4605ecd2c17caedb7465ea22b8ec265a5cb6d5bc;hpb=89439d4fc0d29f04ac68432fd06ab84bc4e36e20;p=elogind.git diff --git a/src/shared/set.h b/src/shared/set.h index 4605ecd2c..4dffecd39 100644 --- a/src/shared/set.h +++ b/src/shared/set.h @@ -22,7 +22,7 @@ ***/ #include "hashmap.h" -#include "util.h" +#include "macro.h" Set *internal_set_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS); #define set_new(ops) internal_set_new(ops HASHMAP_DEBUG_SRC_ARGS) @@ -57,7 +57,7 @@ static inline bool set_contains(Set *s, const void *key) { return internal_hashmap_contains(HASHMAP_BASE(s), key); } -static inline void *set_remove(Set *s, void *key) { +static inline void *set_remove(Set *s, const void *key) { return internal_hashmap_remove(HASHMAP_BASE(s), key); }