aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sockfilt.c2
-rw-r--r--tests/server/tftpd.c4
2 files changed, 3 insertions, 3 deletions
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)