aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/server/sws.c2
1 files changed, 1 insertions, 1 deletions
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);