aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-11 18:29:18 +0000
committerYang Tse <yangsita@gmail.com>2005-12-11 18:29:18 +0000
commite3f523ab2aff8b1f260774b7b69e0069bb835209 (patch)
tree6cb3d950f7334368e489c5d6bcfd7a80e1e8dd74
parent36485e56ed428d324fb08cd94cc36031310806e6 (diff)
Avoid generation of additional warnings
-rw-r--r--lib/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 7b177468c..49dd5ae4f 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -780,7 +780,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
*/
struct Curl_sockaddr_storage ss;
struct addrinfo *res, *ai;
- size_t sslen;
+ socklen_t sslen;
char hbuf[NI_MAXHOST];
struct sockaddr *sa=(struct sockaddr *)&ss;
unsigned char *ap;
@@ -812,7 +812,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
return CURLE_FTP_PORT_FAILED;
}
- rc = getnameinfo((struct sockaddr *)&ss, sslen, hbuf, sizeof(hbuf), NULL,
+ rc = getnameinfo((struct sockaddr *)&ss, (size_t)sslen, hbuf, sizeof(hbuf), NULL,
0, NIFLAGS);
if(rc) {
failf(data, "getnameinfo() returned %d\n", rc);
@@ -921,7 +921,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
if (EPRT == fcmd) {
if (eprtaf < 0)
continue;
- if (getnameinfo((struct sockaddr *)&ss, sslen,
+ if (getnameinfo((struct sockaddr *)&ss, (size_t)sslen,
portmsgbuf, sizeof(portmsgbuf), tmp, sizeof(tmp),
NIFLAGS))
continue;