prevent warning
authorDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2004 08:08:28 +0000 (08:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2004 08:08:28 +0000 (08:08 +0000)
lib/hostip.c

index 7a32d17..6c5e567 100644 (file)
@@ -555,6 +555,6 @@ Curl_addrinfo *Curl_addrinfo_copy(void *org, int port)
 {
   struct hostent *orig = org;
 
-  return Curl_he2ai(orig, port);
+  return Curl_he2ai(orig, (unsigned short)port);
 }
 #endif /* CURLRES_ADDRINFO_COPY */