summaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-12 18:40:18 +0000
committerYang Tse <yangsita@gmail.com>2005-12-12 18:40:18 +0000
commit947f9deed52aa767dc3aa11f9a5d1e0a82426d03 (patch)
treee927afc634f602638ad7af684ee3e4d2092d1495 /lib/hostip6.c
parentce95eee903ae275bd7330ced83a7f28f50b9dce3 (diff)
downloadcurl-947f9deed52aa767dc3aa11f9a5d1e0a82426d03.tar.gz
Fix compiler warning
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r--lib/hostip6.c4
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)