chiark / gitweb /
shared: set - make argument to set_remove() const
[elogind.git] / src / shared / set.h
index 2b49e2f2870fefdc2191ed7f2321fcbb1a73e579..4dffecd39d9de947786c919c7eca17f63428d419 100644 (file)
@@ -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);
 }