diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-12 18:40:18 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-12 18:40:18 +0000 |
commit | 947f9deed52aa767dc3aa11f9a5d1e0a82426d03 (patch) | |
tree | e927afc634f602638ad7af684ee3e4d2092d1495 | |
parent | ce95eee903ae275bd7330ced83a7f28f50b9dce3 (diff) |
Fix compiler warning
-rw-r--r-- | lib/hostip6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c index 04ebaedee..6bdf179c0 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -143,7 +143,9 @@ int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen, char *serv, size_t servlen, int flags, int line, const char *source) { - int res=(getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags); + int res = (getnameinfo)(sa, (size_t)salen, + host, hostlen, serv, servlen, + (unsigned int)flags); if(0 == res) { /* success */ if(logfile) |