aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-02 02:37:32 +0000
committerYang Tse <yangsita@gmail.com>2009-05-02 02:37:32 +0000
commit9137e717b04644592b9b527839470337fdd9f44d (patch)
treee7b9af9f3d06915f4900238ff4f5a077fb05810b /tests
parent80186aa7f44ed5155665d96336b508403b3d4a03 (diff)
Use build-time configured curl_socklen_t instead of socklen_t
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)