From: Yang Tse Date: Wed, 20 Aug 2008 23:32:50 +0000 (+0000) Subject: Use 'Curl_inet_pton()' instead of 'inet_pton()'. X-Git-Tag: curl-7_19_0~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f852a64f5022155f3cc1d69ab546d08806a5f7;p=thirdparty%2Fcurl.git Use 'Curl_inet_pton()' instead of 'inet_pton()'. --- diff --git a/lib/hostares.c b/lib/hostares.c index 2312352422..e283bbffc4 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); }