chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
everywhere: port everything to sigprocmask_many() and friends
[elogind.git]
/
src
/
shared
/
set.h
diff --git
a/src/shared/set.h
b/src/shared/set.h
index 4dffecd39d9de947786c919c7eca17f63428d419..51e40d3a6c506c9ccfce9a51bb9587c2483807c4 100644
(file)
--- a/
src/shared/set.h
+++ b/
src/shared/set.h
@@
-91,7
+91,7
@@
static inline unsigned set_buckets(Set *s) {
return internal_hashmap_buckets(HASHMAP_BASE(s));
}
return internal_hashmap_buckets(HASHMAP_BASE(s));
}
-
void *set_iterate(Set *s, Iterator *i
);
+
bool set_iterate(Set *s, Iterator *i, void **value
);
static inline void set_clear(Set *s) {
internal_hashmap_clear(HASHMAP_BASE(s));
static inline void set_clear(Set *s) {
internal_hashmap_clear(HASHMAP_BASE(s));
@@
-125,7
+125,7
@@
int set_put_strdup(Set *s, const char *p);
int set_put_strdupv(Set *s, char **l);
#define SET_FOREACH(e, s, i) \
int set_put_strdupv(Set *s, char **l);
#define SET_FOREACH(e, s, i) \
- for ((i) = ITERATOR_FIRST
, (e) = set_iterate((s), &(i)); (e); (e) = set_iterate((s), &(i))
)
+ for ((i) = ITERATOR_FIRST
; set_iterate((s), &(i), (void**)&(e));
)
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free);
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free);
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free);
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free);