summaryrefslogtreecommitdiff
path: root/src/shared/set.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/set.h')
-rw-r--r--src/shared/set.h4
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)