set: rename _set_ensure_allocated() -> set_ensure_allocated()

Follow-ups for c09ce222b6.
This commit is contained in:
Yu Watanabe
2025-05-08 05:58:33 +09:00
parent f24f70343d
commit 54bbfa007d
2 changed files with 5 additions and 6 deletions
+3 -3
View File
@@ -843,7 +843,7 @@ int ordered_hashmap_ensure_allocated(OrderedHashmap **h, const struct hash_ops *
return hashmap_base_ensure_allocated((HashmapBase**)h, hash_ops, HASHMAP_TYPE_ORDERED);
}
int _set_ensure_allocated(Set **s, const struct hash_ops *hash_ops) {
int set_ensure_allocated(Set **s, const struct hash_ops *hash_ops) {
return hashmap_base_ensure_allocated((HashmapBase**)s, hash_ops, HASHMAP_TYPE_SET);
}
@@ -1285,7 +1285,7 @@ int set_put(Set *s, const void *key) {
int set_ensure_put(Set **s, const struct hash_ops *hash_ops, const void *key) {
int r;
r = _set_ensure_allocated(s, hash_ops);
r = set_ensure_allocated(s, hash_ops);
if (r < 0)
return r;
@@ -1883,7 +1883,7 @@ int set_put_strndup_full(Set **s, const struct hash_ops *hash_ops, const char *p
assert(s);
assert(p);
r = _set_ensure_allocated(s, hash_ops);
r = set_ensure_allocated(s, hash_ops);
if (r < 0)
return r;