From: Yang Tse Date: Sun, 10 May 2009 10:24:53 +0000 (+0000) Subject: Fix type cast X-Git-Tag: curl-7_19_5~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a85271ce0a6f60fa09b95a7fa2c9b3946b4ea2f2;p=thirdparty%2Fcurl.git Fix type cast --- diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c index 24ba4fa200..963335111c 100644 --- a/lib/curl_addrinfo.c +++ b/lib/curl_addrinfo.c @@ -303,7 +303,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 = (int)ss_size; + ai->ai_addrlen = (curl_socklen_t)ss_size; /* leave the rest of the struct filled with zero */