chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
umount: ignore missing /proc/swaps
[elogind.git]
/
src
/
set.c
diff --git
a/src/set.c
b/src/set.c
index 331d37e3dec626e6bde31040c1f64f5e55da4937..097b9d3aae92bb995f181f76e44ceb5d144f9082 100644
(file)
--- a/
src/set.c
+++ b/
src/set.c
@@
-38,12
+38,7
@@
void set_free(Set* s) {
}
void set_free_free(Set *s) {
}
void set_free_free(Set *s) {
- void *p;
-
- while ((p = set_steal_first(s)))
- free(p);
-
- set_free(s);
+ hashmap_free_free(MAKE_HASHMAP(s));
}
int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func) {
}
int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func) {