From 7d7c24f9150e78ab0e3e721b142cfe9eb8428260 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 9 Mar 2001 15:12:22 +0000 Subject: accept() and getsockname() now use socklen_t types, as that was just added to configure --- lib/ftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ftp.c b/lib/ftp.c index 2a2e519c9..b20e845a7 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -119,8 +119,8 @@ static CURLcode AllowServerConnect(struct UrlData *data, size_t size = sizeof(struct sockaddr_in); struct sockaddr_in add; - getsockname(sock, (struct sockaddr *) &add, (int *)&size); - s=accept(sock, (struct sockaddr *) &add, (int *)&size); + getsockname(sock, (struct sockaddr *) &add, (socklen_t *)&size); + s=accept(sock, (struct sockaddr *) &add, (socklen_t *)&size); sclose(sock); /* close the first socket */ @@ -932,7 +932,7 @@ again:; size = sizeof(add); if(getsockname(portsock, (struct sockaddr *) &add, - (int *)&size)<0) { + (socklen_t *)&size)<0) { failf(data, "getsockname() failed"); return CURLE_FTP_PORT_FAILED; } -- cgit v1.2.3