From 723aef71e8c985b75ebb13b69ec359988d2cbba3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 17 May 2005 09:15:21 +0000 Subject: [PATCH] reduced typecasts, from two to one --- lib/ftp.c | 6 +++--- 1 file 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 */