chiark / gitweb /
remount: add tool that applies /etc/fstab mount options to all api mounts
[elogind.git] / 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 *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) {