chiark / gitweb /
test: adjust max load factor in test_hashmap_many()
[elogind.git] / src / shared / set.c
index ed16067bdc3757db55b1f451b55a8049ec9ea93d..84ab82a701738c08d567f9508953e56b1c94c929 100644 (file)
@@ -137,7 +137,11 @@ int set_merge(Set *s, Set *other) {
         return hashmap_merge(MAKE_HASHMAP(s), MAKE_HASHMAP(other));
 }
 
-void set_move(Set *s, Set *other) {
+int set_reserve(Set *s, unsigned entries_add) {
+        return hashmap_reserve(MAKE_HASHMAP(s), entries_add);
+}
+
+int set_move(Set *s, Set *other) {
         return hashmap_move(MAKE_HASHMAP(s), MAKE_HASHMAP(other));
 }