]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/hashmap.c
hashmap: allow hashmap_move() to fail
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 14 Oct 2014 22:17:51 +0000 (00:17 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 23 Oct 2014 15:38:02 +0000 (17:38 +0200)
commit7ad63f57b6ce7ae9e3cc19dcb441f0a4494fa3f2
tree643272a659bd396c791a4fb4e12949102e87b2b3
parent09a65f92994445d8fecca34e71b423a8be1769bf
hashmap: allow hashmap_move() to fail

It cannot fail in the current hashmap implementation, but it may fail in
alternative implementations (unless a sufficiently large reservation has
been placed beforehand).
src/shared/hashmap.c
src/shared/hashmap.h
src/shared/set.c
src/shared/set.h
src/test/test-hashmap-plain.c