aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-09 15:12:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-09 15:12:22 +0000
commit7d7c24f9150e78ab0e3e721b142cfe9eb8428260 (patch)
treeb850bda2c236b6a8f78f3a0e5d26e995ab763216
parent0dc8c4d4511e4981a9823298df3cc2cc5d866329 (diff)
accept() and getsockname() now use socklen_t types, as that was just added
to configure
-rw-r--r--lib/ftp.c6
1 files 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;
}