1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 02:57:16 +03:00

set: return NULL on destructors

Like we do it pretty much everywhere else.
This commit is contained in:
Lennart Poettering 2015-09-01 17:13:53 +02:00
parent 3f010fe095
commit bd9f2fc2d0

View File

@ -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) #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)); 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)); internal_hashmap_free_free(HASHMAP_BASE(s));
return NULL;
} }
/* no set_free_free_free */ /* no set_free_free_free */