From: Lennart Poettering Date: Tue, 24 Nov 2015 20:54:22 +0000 (+0100) Subject: util-lib: add ordered_set_ensure_allocated() X-Git-Tag: v229.1~1^2~99 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=ab661e0502f13a131b211f0669dacc6ff5fedccb util-lib: add ordered_set_ensure_allocated() ordered_set_ensure_allocated() does for an OrderedSet, what set_ensure_allicated() does for a Set. --- diff --git a/src/basic/set.h b/src/basic/set.h index 88a2cd74a..99367f0a1 100644 --- a/src/basic/set.h +++ b/src/basic/set.h @@ -27,7 +27,6 @@ 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 Set *set_free(Set *s) { internal_hashmap_free(HASHMAP_BASE(s)); return NULL;