]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/hashmap: make _ensure_allocated return 1 on actual allocations
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 May 2020 12:17:43 +0000 (14:17 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 May 2020 14:48:04 +0000 (16:48 +0200)
commit9ff7c5b031fb95783884f1e755b5875712f46ea5
tree44bee256dbd765cdbfd6521ed550e0f3adb2c08b
parent49d5aae503f86c61c9e8325c86494431fcf8ca98
basic/hashmap: make _ensure_allocated return 1 on actual allocations

Also, make test_hashmap_ensure_allocated() actually test
hashmap_ensure_allocated().
src/basic/hashmap.c
src/test/test-hashmap-plain.c