diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 2 | ||||
-rw-r--r-- | lib/hostip.h | 2 | ||||
-rw-r--r-- | lib/hostip6.c | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -780,7 +780,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn, */ struct Curl_sockaddr_storage ss; struct addrinfo *res, *ai; - socklen_t sslen; + size_t sslen; char hbuf[NI_MAXHOST]; struct sockaddr *sa=(struct sockaddr *)&ss; unsigned char *ap; diff --git a/lib/hostip.h b/lib/hostip.h index 3baf8284b..f9be23c22 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -191,7 +191,7 @@ int curl_dogetaddrinfo(char *hostname, char *service, struct addrinfo *hints, struct addrinfo **result, int line, const char *source); -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); 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) |