]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
util: constify the second argument of set_get()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Sep 2020 14:17:49 +0000 (23:17 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Sep 2020 15:52:26 +0000 (17:52 +0200)
src/basic/set.h

index ff5e7b959b9cf16e580ba8aaa1c8d2b7c34492ce..42cc064ac47162dd6583b9035395f39f4eb6365e 100644 (file)
@@ -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 */