summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-01 17:13:53 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-01 17:20:56 +0200
commitbd9f2fc2d080e0ab3de8d159cc98aa5948007d37 (patch)
treedecf89e048ae84c70ad3eecd249d6ecfc9620667
parent3f010fe095a8070299d35f0f9d386672e0cb2af0 (diff)
set: return NULL on destructors
Like we do it pretty much everywhere else.
-rw-r--r--src/basic/set.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/set.h b/src/basic/set.h
index 51e40d3a6c..4554ef2d49 100644
--- a/src/basic/set.h
+++ b/src/basic/set.h
@@ -28,12 +28,14 @@ Set *internal_set_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
#define set_new(ops) internal_set_new(ops HASHMAP_DEBUG_SRC_ARGS)
-static inline void set_free(Set *s) {
+static inline Set *set_free(Set *s) {
internal_hashmap_free(HASHMAP_BASE(s));
+ return NULL;
}
-static inline void set_free_free(Set *s) {
+static inline Set *set_free_free(Set *s) {
internal_hashmap_free_free(HASHMAP_BASE(s));
+ return NULL;
}
/* no set_free_free_free */