summaryrefslogtreecommitdiff
path: root/src/set.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-20 03:26:15 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-20 03:26:15 +0200
commit449ddb2d23a63ca4c8cd70d13a070fba87c1fb30 (patch)
treec202f02f5162b0881a0e8df4a35adc211fcd57b6 /src/set.c
parent11ce3427242b8b4ddf638ed5703d69041d719b4c (diff)
remount: add tool that applies /etc/fstab mount options to all api mounts
Diffstat (limited to 'src/set.c')
-rw-r--r--src/set.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/set.c b/src/set.c
index 331d37e3de..097b9d3aae 100644
--- 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) {