From d118312922cc5415b26afd2eae2849c2c56a3359 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 8 Feb 2005 12:36:13 +0000 Subject: Curl_addrinfo?_callback() and addrinfo_callback() now returns CURLE_OK or CURLE_OUT_OF_MEMORY. Add typecast in hostares.c. --- lib/hostip.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/hostip.h') 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 -- cgit v1.2.3