]> granicus.if.org Git - curl/commitdiff
typecast to prevent warning
authorDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2004 08:31:17 +0000 (08:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2004 08:31:17 +0000 (08:31 +0000)
lib/hostthre.c

index be8ab20a8d9dd22efbbd55759fc6e25edc463e92..a13159f5f8e71339badc8d876e7087a85adf8bf3 100644 (file)
@@ -469,7 +469,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
           hostname, port, Curl_strerror(conn,WSAGetLastError()));
     return NULL;
   }
-  return Curl_he2ai(h, port);
+  return Curl_he2ai(h, (unsigned short)port);
 }
 #endif /* CURLRES_IPV4 */