chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef97d1
)
util-lib: add ordered_set_ensure_allocated()
author
Lennart Poettering
<lennart@poettering.net>
Tue, 24 Nov 2015 20:54:22 +0000
(21:54 +0100)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/src/basic/set.h
b/src/basic/set.h
index 88a2cd74a6a09325996dd0a0623699d2ab7fccf6..99367f0a1986f25caaf0fd9763ace7508da29340 100644
(file)
--- 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;