diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-11 12:03:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-11 12:03:01 +0000 |
commit | 36485e56ed428d324fb08cd94cc36031310806e6 (patch) | |
tree | ffbe2d8dad272873ef76d51cfb914e32c004b9f3 /lib/hostip6.c | |
parent | b4113360f6401af200505f8df8203619a380c80a (diff) | |
download | curl-36485e56ed428d324fb08cd94cc36031310806e6.tar.gz |
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r-- | lib/hostip6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c index 867b38a78..edfbd54f4 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -138,12 +138,12 @@ int curl_dogetaddrinfo(char *hostname, char *service, return res; } -int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen, +int curl_dogetnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags, int line, const char *source) { - int res = (int)(getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags); + int res = (getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags); if(0 == res) { /* success */ if(logfile) |