diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2005-02-08 12:36:13 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2005-02-08 12:36:13 +0000 |
commit | d118312922cc5415b26afd2eae2849c2c56a3359 (patch) | |
tree | eeec34df7698108963ac29387cfc00489fdaadf3 /lib/hostip.h | |
parent | 82b93e494583f87bee0bef33575f5c3d07253791 (diff) |
Curl_addrinfo?_callback() and addrinfo_callback() now returns
CURLE_OK or CURLE_OUT_OF_MEMORY.
Add typecast in hostares.c.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 75ad10b90..4fd03c1af 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -199,14 +199,14 @@ int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen, /* This is the callback function that is used when we build with asynch resolve, ipv4 */ -void Curl_addrinfo4_callback(void *arg, - int status, - struct hostent *hostent); +CURLcode Curl_addrinfo4_callback(void *arg, + int status, + struct hostent *hostent); /* This is the callback function that is used when we build with asynch resolve, ipv6 */ -void Curl_addrinfo6_callback(void *arg, - int status, - struct addrinfo *ai); +CURLcode Curl_addrinfo6_callback(void *arg, + int status, + struct addrinfo *ai); /* [ipv4 only] Creates a Curl_addrinfo struct from a numerical-only IP |