From c382c550e7d8ad54d2c35b0fea9d0eef09ff3a25 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 14 Apr 2009 12:53:53 +0000 Subject: fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value --- lib/curl_addrinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/curl_addrinfo.c') 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 */ -- cgit v1.2.1