diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-10 11:21:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-10 11:21:57 +0000 |
commit | 315a9c95d51fcadc11e237826a67aecb6fdc076b (patch) | |
tree | 9b2f48446ab41f35ae39dac77b8159649fada8c0 | |
parent | e010ac970692132adc8bdb2ca96b291fe94bae5c (diff) |
prevent 64bit warnings
-rw-r--r-- | tests/server/sockfilt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index b04008a14..0a1b21b46 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -334,7 +334,7 @@ static int juggle(curl_socket_t *sockfdp, /* question asking us what PORT number we are listening to. Replies with PORT with "IPv[num]/[port]" */ sprintf((char *)buffer, "IPv%d/%d\n", use_ipv6?6:4, port); - r = strlen((char *)buffer); + r = (int)strlen((char *)buffer); sprintf(data, "PORT\n%04x\n", r); write(fileno(stdout), data, 10); write(fileno(stdout), buffer, r); @@ -356,7 +356,7 @@ static int juggle(curl_socket_t *sockfdp, return FALSE; logmsg("> %d bytes data, server => client", len); - lograw(buffer, len); + lograw(buffer, (int)len); if(*mode == PASSIVE_LISTEN) { logmsg("*** We are disconnected!"); |