From 947f9deed52aa767dc3aa11f9a5d1e0a82426d03 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 12 Dec 2005 18:40:18 +0000 Subject: Fix compiler warning --- lib/hostip6.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3