1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Fix compiler warning

This commit is contained in:
Yang Tse 2005-12-08 19:47:33 +00:00
parent 1e5f6cc1dc
commit c94f3e8188

View File

@ -143,7 +143,7 @@ int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen,
char *serv, size_t servlen, int flags, char *serv, size_t servlen, int flags,
int line, const char *source) int line, const char *source)
{ {
int res=(getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags); int res = (int)(getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags);
if(0 == res) { if(0 == res) {
/* success */ /* success */
if(logfile) if(logfile)