diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-03-13 12:52:28 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-03-13 12:52:28 +0000 |
commit | 0188493d54711d61ba7227f37fe87afbdb4426c7 (patch) | |
tree | 6d4ae1a3eb721aa4da0abb53617ac6a6b3fdca8a | |
parent | ae07fd2ba82d4029d65a199073b6fe0c930e9bfa (diff) |
Use Curl_inet_pton() instead of inet_pton().
-rw-r--r-- | lib/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index d105ee03d..147b73eaa 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -88,6 +88,7 @@ #include "multiif.h" #include "sockaddr.h" /* required for Curl_sockaddr_storage */ #include "inet_ntop.h" +#include "inet_pton.h" /* The last #include file should be: */ #include "memdebug.h" @@ -320,7 +321,7 @@ static CURLcode bindlocal(struct connectdata *conn, in=inet_addr(myhost); #ifdef ENABLE_IPV6 - in6 = inet_pton (AF_INET6, myhost, (void *)&ipv6_addr); + in6 = Curl_inet_pton (AF_INET6, myhost, (void *)&ipv6_addr); #endif if (CURL_INADDR_NONE == in && -1 == in6) { failf(data,"couldn't find my own IP address (%s)", myhost); |