chiark / gitweb /
util-lib: add ordered_set_ensure_allocated()
authorLennart Poettering <lennart@poettering.net>
Tue, 24 Nov 2015 20:54:22 +0000 (21:54 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:14 +0000 (15:22 +0200)
ordered_set_ensure_allocated() does for an OrderedSet, what
set_ensure_allicated() does for a Set.

src/basic/set.h

index 88a2cd74a6a09325996dd0a0623699d2ab7fccf6..99367f0a1986f25caaf0fd9763ace7508da29340 100644 (file)
@@ -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;