mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
basic/set: const-ify set_first()
set_steal_first() is the version that modifies Set so this one should be const.
This commit is contained in:
parent
e23d911664
commit
f18f809c07
|
@ -102,8 +102,8 @@ static inline void *set_steal_first(Set *s) {
|
|||
/* no set_steal_first_key */
|
||||
/* no set_first_key */
|
||||
|
||||
static inline void *set_first(Set *s) {
|
||||
return internal_hashmap_first_key_and_value(HASHMAP_BASE(s), false, NULL);
|
||||
static inline void *set_first(const Set *s) {
|
||||
return internal_hashmap_first_key_and_value(HASHMAP_BASE((Set *) s), false, NULL);
|
||||
}
|
||||
|
||||
/* no set_next */
|
||||
|
|
Loading…
Reference in a new issue