diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 15:12:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 15:12:22 +0000 |
commit | 7d7c24f9150e78ab0e3e721b142cfe9eb8428260 (patch) | |
tree | b850bda2c236b6a8f78f3a0e5d26e995ab763216 | |
parent | 0dc8c4d4511e4981a9823298df3cc2cc5d866329 (diff) |
accept() and getsockname() now use socklen_t types, as that was just added
to configure
-rw-r--r-- | lib/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |