diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-08-14 18:12:43 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-08-14 18:12:43 -0400 |
commit | 03070edd5c0f6ae55ed79b9fc1295af39844ff40 (patch) | |
tree | 047bc4cd7ebdb01cc4d6aa0bfb111ec5ce73f313 /src/shared/set.h | |
parent | 28744043fbaca39dfc9fd1666a8557fd6d8a690f (diff) |
src/shared: import more code cleanups from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/set.h')
-rw-r--r-- | src/shared/set.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/set.h b/src/shared/set.h index c6455be7c1..dd4d458792 100644 --- a/src/shared/set.h +++ b/src/shared/set.h @@ -34,9 +34,6 @@ typedef struct Set Set; Set *set_new(hash_func_t hash_func, compare_func_t compare_func); void set_free(Set* s); -static inline void set_freep(Set **s) { - set_free(*s); -} int set_put(Set *s, void *value); void *set_get(Set *s, void *value); @@ -45,4 +42,5 @@ bool set_contains(Set *s, void *value); void *set_iterate(Set *s, Iterator *i); void *set_iterate_backwards(Set *s, Iterator *i); +DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free); #define _cleanup_set_free_ _cleanup_(set_freep) |