From 7ad63f57b6ce7ae9e3cc19dcb441f0a4494fa3f2 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Wed, 15 Oct 2014 00:17:51 +0200 Subject: 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/set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/set.h') diff --git a/src/shared/set.h b/src/shared/set.h index 8fe071a326..d2622d17ea 100644 --- a/src/shared/set.h +++ b/src/shared/set.h @@ -51,7 +51,7 @@ int set_remove_and_put(Set *s, void *old_value, void *new_value); int set_merge(Set *s, Set *other); int set_reserve(Set *s, unsigned entries_add); -void set_move(Set *s, Set *other); +int set_move(Set *s, Set *other); int set_move_one(Set *s, Set *other, void *value); unsigned set_size(Set *s); -- cgit v1.2.3-54-g00ecf