]> granicus.if.org Git - curl/commitdiff
Fix type cast
authorYang Tse <yangsita@gmail.com>
Sun, 10 May 2009 10:24:53 +0000 (10:24 +0000)
committerYang Tse <yangsita@gmail.com>
Sun, 10 May 2009 10:24:53 +0000 (10:24 +0000)
lib/curl_addrinfo.c

index 24ba4fa200dce82fdb7a35c537824063e18eeb1b..963335111c371577e9ea2f8e01ad1aa2162ee59e 100644 (file)
@@ -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 */