summaryrefslogtreecommitdiff
path: root/lib/curl_addrinfo.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-14 12:53:53 +0000
committerYang Tse <yangsita@gmail.com>2009-04-14 12:53:53 +0000
commitc382c550e7d8ad54d2c35b0fea9d0eef09ff3a25 (patch)
tree4a55cc0951de068e16c9e016bdb8b70fde9c6473 /lib/curl_addrinfo.c
parentc663494c69e81f8d88ccf8dad7e4ae3ef726e9d8 (diff)
downloadcurl-c382c550e7d8ad54d2c35b0fea9d0eef09ff3a25.tar.gz
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
Diffstat (limited to 'lib/curl_addrinfo.c')
-rw-r--r--lib/curl_addrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index f75145722..19f73c48c 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -259,7 +259,7 @@ Curl_he2ai(const struct hostent *he, int port)
for(i=0; (curr = he->h_addr_list[i]) != NULL; i++) {
- int ss_size;
+ size_t ss_size;
#ifdef ENABLE_IPV6
if (he->h_addrtype == AF_INET6)
ss_size = sizeof (struct sockaddr_in6);
@@ -297,7 +297,7 @@ Curl_he2ai(const struct hostent *he, int port)
the type must be ignored and conn->socktype be used instead! */
ai->ai_socktype = SOCK_STREAM;
- ai->ai_addrlen = ss_size;
+ ai->ai_addrlen = (int)ss_size;
/* leave the rest of the struct filled with zero */