1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

reduced typecasts, from two to one

This commit is contained in:
Daniel Stenberg 2005-05-17 09:15:21 +00:00
parent 48964a911e
commit 723aef71e8

View File

@ -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 */