{
struct hostent *orig = org;
- return Curl_he2ai(orig, (unsigned short)port);
+ return Curl_he2ai(orig, port);
}
#endif /* CURLRES_ADDRINFO_COPY */
/* [ipv4 only] Curl_he2ai() converts a struct hostent to a Curl_addrinfo chain
and returns it */
-Curl_addrinfo *Curl_he2ai(struct hostent *, unsigned short port);
+Curl_addrinfo *Curl_he2ai(struct hostent *, int port);
/* relocate a hostent struct */
void Curl_hostent_relocate(struct hostent *h, long offset);
*/
-Curl_addrinfo *Curl_he2ai(struct hostent *he, unsigned short port)
+Curl_addrinfo *Curl_he2ai(struct hostent *he, int port)
{
Curl_addrinfo *ai;
Curl_addrinfo *prevai = NULL;
hostname, port, Curl_strerror(conn,WSAGetLastError()));
return NULL;
}
- return Curl_he2ai(h, (unsigned short)port);
+ return Curl_he2ai(h, port);
}
#endif /* CURLRES_IPV4 */