From 624e657210edf3fea36ca9dd2b448533437d0b20 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 12 Jul 2006 05:54:06 +0000 Subject: [PATCH] sread now returns ssize_t --- tests/server/sws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server/sws.c b/tests/server/sws.c index 3eff97d45..7d1b76ea1 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -454,7 +454,7 @@ static int get_request(int sock, struct httprequest *req) /*** end of httprequest init ***/ while (req->offset < REQBUFSIZ) { - int got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset); + ssize_t got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset); if (got <= 0) { if (got < 0) { logmsg("recv() returned error: %d", errno);