aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-17 09:15:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-17 09:15:21 +0000
commit723aef71e8c985b75ebb13b69ec359988d2cbba3 (patch)
treecc13bbca07f218a0ff636429a18dd9f7399df5bf
parent48964a911e63690c982f227356b5cd2861426a79 (diff)
reduced typecasts, from two to one
-rw-r--r--lib/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 98b197a8b..740926a87 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -210,11 +210,11 @@ static CURLcode AllowServerConnect(struct connectdata *conn)
/* we have received data here */
{
curl_socket_t s;
- size_t size = sizeof(struct sockaddr_in);
+ socklen_t size = (socklen_t) sizeof(struct sockaddr_in);
struct sockaddr_in add;
- getsockname(sock, (struct sockaddr *) &add, (socklen_t *)&size);
- s=accept(sock, (struct sockaddr *) &add, (socklen_t *)&size);
+ getsockname(sock, (struct sockaddr *) &add, &size);
+ s=accept(sock, (struct sockaddr *) &add, &size);
sclose(sock); /* close the first socket */