From 5d4c981e130adac09fc13bc04494f5f56294cc79 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 30 Aug 2007 18:26:19 +0000 Subject: Fixed a few compiler warnings. Try to do a slightly better job of cleaning up after an OOM condition in curl_multi_add_handle --- tests/server/sockfilt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index bd54f8812..b4e1c07f0 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -320,8 +320,8 @@ static int juggle(curl_socket_t *sockfdp, nread_stdin = 0; do { /* get data in the buffer at the correct position */ - ssize_t rc = read(fileno(stdin), &buffer[nread_stdin], - buffer_len - nread_stdin); + rc = read(fileno(stdin), &buffer[nread_stdin], + buffer_len - nread_stdin); logmsg("read %d bytes", rc); if(rc <= 0) return FALSE; -- cgit v1.2.3