chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit: introduce ConditionFileIsExecutable= and use it where we check for a binary...
[elogind.git]
/
src
/
set.c
diff --git
a/src/set.c
b/src/set.c
index a1aeb727a2b0cb3813818d42b66ff78baeaac4f2..097b9d3aae92bb995f181f76e44ceb5d144f9082 100644
(file)
--- a/
src/set.c
+++ b/
src/set.c
@@
-1,4
+1,4
@@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8
; indent-tabs-mode: nil
-*-*/
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-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) {