aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-20 23:32:50 +0000
committerYang Tse <yangsita@gmail.com>2008-08-20 23:32:50 +0000
commit56f852a64f5022155f3cc1d69ab546d08806a5f7 (patch)
tree33a51364746785d6476290dc7983e8fbda2dac7a /lib
parent1c68e790919cc36331ac5a1e70be5c54f1c6c9d7 (diff)
Use 'Curl_inet_pton()' instead of 'inet_pton()'.
Diffstat (limited to 'lib')
-rw-r--r--lib/hostares.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c
index 231235242..e283bbffc 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -73,6 +73,7 @@
#include "strerror.h"
#include "url.h"
#include "multiif.h"
+#include "inet_pton.h"
#include "connect.h"
#include "select.h"
@@ -389,7 +390,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
}
#ifdef ENABLE_IPV6 /* CURLRES_IPV6 */
- if (inet_pton (AF_INET6, hostname, &in6) > 0) {
+ if (Curl_inet_pton (AF_INET6, hostname, &in6) > 0) {
/* This must be an IPv6 address literal. */
return Curl_ip2addr6(&in6, hostname, port);
}