From: Yu Watanabe Date: Fri, 4 Sep 2020 14:17:49 +0000 (+0900) Subject: util: constify the second argument of set_get() X-Git-Tag: v247-rc1~296 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3f14c573bc1eb7e6f9d74be2c39f9a2be84e39d;p=thirdparty%2Fsystemd.git util: constify the second argument of set_get() --- diff --git a/src/basic/set.h b/src/basic/set.h index ff5e7b959b9..42cc064ac47 100644 --- a/src/basic/set.h +++ b/src/basic/set.h @@ -34,7 +34,7 @@ int _set_ensure_allocated(Set **s, const struct hash_ops *hash_ops HASHMAP_DEBUG int set_put(Set *s, const void *key); /* no set_update */ /* no set_replace */ -static inline void *set_get(const Set *s, void *key) { +static inline void *set_get(const Set *s, const void *key) { return _hashmap_get(HASHMAP_BASE((Set *) s), key); } /* no set_get2 */