From: Lennart Poettering Date: Wed, 10 Jun 2020 16:52:08 +0000 (+0200) Subject: Merge pull request #15940 from keszybz/names-set-optimization X-Git-Tag: v246-rc1~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24bd74ae03efc98272236bd0a98a1d7d090d540c;p=thirdparty%2Fsystemd.git Merge pull request #15940 from keszybz/names-set-optimization Try to optimize away Unit.names set --- 24bd74ae03efc98272236bd0a98a1d7d090d540c diff --cc src/basic/hashmap.c index 3172865e3e2,b45938cd3bc..15c8c4723c0 --- a/src/basic/hashmap.c +++ b/src/basic/hashmap.c @@@ -833,10 -835,10 +833,10 @@@ static int hashmap_base_ensure_allocate return -ENOMEM; *h = q; - return 0; + return 1; } -int internal_hashmap_ensure_allocated(Hashmap **h, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS) { +int _hashmap_ensure_allocated(Hashmap **h, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS) { return hashmap_base_ensure_allocated((HashmapBase**)h, hash_ops, HASHMAP_TYPE_PLAIN HASHMAP_DEBUG_PASS_ARGS); }