]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Use 'Curl_inet_pton()' instead of 'inet_pton()'.
authorYang Tse <yangsita@gmail.com>
Wed, 20 Aug 2008 23:32:50 +0000 (23:32 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 20 Aug 2008 23:32:50 +0000 (23:32 +0000)
lib/hostares.c

index 23123524226e76a5988fa541e8aa2b9c194bb570..e283bbffc4d65e57282d91d5618d609f98b872cd 100644 (file)
@@ -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);
   }