diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-12-10 12:54:17 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-12-10 23:16:43 +0100 |
commit | 254f7bd78a1ab248329def2cbbbc983e7f6d2495 (patch) | |
tree | d1fd479896f6c3a666befa9e57b71252a1d91248 /lib/hostip.h | |
parent | e43ad4b47442c99c95f76675a17e608610231871 (diff) | |
download | curl-254f7bd78a1ab248329def2cbbbc983e7f6d2495.tar.gz |
hash: lazy-alloc the table in Curl_hash_add()bagder/hash-lazyalloc
This makes Curl_hash_init() infallible which saves error paths.
Closes #8132
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 67a688aeb..1db598184 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -129,8 +129,8 @@ struct Curl_addrinfo *Curl_getaddrinfo(struct Curl_easy *data, void Curl_resolv_unlock(struct Curl_easy *data, struct Curl_dns_entry *dns); -/* init a new dns cache and return success */ -int Curl_mk_dnscache(struct Curl_hash *hash); +/* init a new dns cache */ +void Curl_init_dnscache(struct Curl_hash *hash); /* prune old entries from the DNS cache */ void Curl_hostcache_prune(struct Curl_easy *data); |