diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-17 09:15:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-17 09:15:21 +0000 |
commit | 723aef71e8c985b75ebb13b69ec359988d2cbba3 (patch) | |
tree | cc13bbca07f218a0ff636429a18dd9f7399df5bf | |
parent | 48964a911e63690c982f227356b5cd2861426a79 (diff) |
reduced typecasts, from two to one
-rw-r--r-- | lib/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |