summaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-30 19:02:23 +0000
committerYang Tse <yangsita@gmail.com>2008-10-30 19:02:23 +0000
commitc2c800d8639b1f34a89548e6c26e6d805036dfdc (patch)
tree452693a63001821bc9e69aef8c835805ed53a939 /lib/hostip.h
parent625c107c25815776bb2ee8df923638dd36f4ddd7 (diff)
downloadcurl-c2c800d8639b1f34a89548e6c26e6d805036dfdc.tar.gz
Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo()
implementation from lib/hostip6.c to lib/curl_addrinfo.c and prototypes from lib/hostip.h to lib/curl_addrinfo.h
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 1d43a938b..2d892b85a 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -197,14 +197,7 @@ void Curl_hostcache_prune(struct SessionHandle *data);
/* Return # of adresses in a Curl_addrinfo struct */
int Curl_num_addresses (const Curl_addrinfo *addr);
-#ifdef CURLDEBUG
-void curl_dofreeaddrinfo(struct addrinfo *freethis,
- int line, const char *source);
-int curl_dogetaddrinfo(const char *hostname, const char *service,
- struct addrinfo *hints,
- struct addrinfo **result,
- int line, const char *source);
-#ifdef HAVE_GETNAMEINFO
+#if defined(CURLDEBUG) && defined(HAVE_GETNAMEINFO)
int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa,
GETNAMEINFO_TYPE_ARG2 salen,
char *host, GETNAMEINFO_TYPE_ARG46 hostlen,
@@ -212,7 +205,6 @@ int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa,
GETNAMEINFO_TYPE_ARG7 flags,
int line, const char *source);
#endif
-#endif
/* This is the callback function that is used when we build with asynch
resolve, ipv4 */