chiark / gitweb /
hashmap: hashmap_move_one() should return -ENOENT when 'other' is NULL
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 13 Oct 2014 16:14:07 +0000 (18:14 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 23 Oct 2014 15:38:02 +0000 (17:38 +0200)
commitbf3d3e2bb7ae2d3854be57f28dd1403c8f7e4c3c
tree97f43b9f46d79f3331d54468077617faf7b55801
parent9ba81d5a61b7c992a1d2e5e02f334b8e2a0b0c22
hashmap: hashmap_move_one() should return -ENOENT when 'other' is NULL

-ENOENT is the same return value as if 'other' were an allocated hashmap
that does not contain the key. A NULL hashmap is a possible way of
expressing a hashmap that contains no key.
src/shared/hashmap.c