summaryrefslogtreecommitdiff
path: root/src/shared/set.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-10-15 00:17:51 +0200
committerMichal Schmidt <mschmidt@redhat.com>2014-10-23 17:38:02 +0200
commit7ad63f57b6ce7ae9e3cc19dcb441f0a4494fa3f2 (patch)
tree643272a659bd396c791a4fb4e12949102e87b2b3 /src/shared/set.c
parent09a65f92994445d8fecca34e71b423a8be1769bf (diff)
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).
Diffstat (limited to 'src/shared/set.c')
-rw-r--r--src/shared/set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/set.c b/src/shared/set.c
index 1a3465ca8b..84ab82a701 100644
--- a/src/shared/set.c
+++ b/src/shared/set.c
@@ -141,7 +141,7 @@ int set_reserve(Set *s, unsigned entries_add) {
return hashmap_reserve(MAKE_HASHMAP(s), entries_add);
}
-void set_move(Set *s, Set *other) {
+int set_move(Set *s, Set *other) {
return hashmap_move(MAKE_HASHMAP(s), MAKE_HASHMAP(other));
}