From 9137e717b04644592b9b527839470337fdd9f44d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 2 May 2009 02:37:32 +0000 Subject: Use build-time configured curl_socklen_t instead of socklen_t --- tests/server/sockfilt.c | 2 +- tests/server/tftpd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/server') diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 1e4522dc8..8ac653c58 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -751,7 +751,7 @@ static curl_socket_t sockdaemon(curl_socket_t sock, got */ /* we succeeded to bind */ struct sockaddr_in add; - socklen_t socksize = sizeof(add); + curl_socklen_t socksize = sizeof(add); if(getsockname(sock, (struct sockaddr *) &add, &socksize)<0) { diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 6dcd89409..afd7f4fdd 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -152,7 +152,7 @@ static int maxtimeout = 5*TIMEOUT; static char buf[PKTSIZE]; static char ackbuf[PKTSIZE]; static struct sockaddr_in from; -static socklen_t fromlen; +static curl_socklen_t fromlen; struct bf { int counter; /* size of data in buffer, or flag */ @@ -376,7 +376,7 @@ static int synchnet(curl_socket_t f /* socket to flush */) int j = 0; char rbuf[PKTSIZE]; struct sockaddr_in fromaddr; - socklen_t fromaddrlen; + curl_socklen_t fromaddrlen; while (1) { #if defined(HAVE_IOCTLSOCKET) -- cgit v1.2.3