From: Tom Gundersen Date: Wed, 1 Apr 2015 11:46:59 +0000 (+0200) Subject: shared: set - make argument to set_remove() const X-Git-Tag: v219.0~208 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=4a9185c4388d866ddc7c2881e5a31ddd141493af shared: set - make argument to set_remove() const --- diff --git a/src/shared/set.h b/src/shared/set.h index 2b49e2f28..4dffecd39 100644 --- a/src/shared/set.h +++ b/src/shared/set.h @@ -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); }