aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-12 05:54:06 +0000
committerYang Tse <yangsita@gmail.com>2006-07-12 05:54:06 +0000
commit624e657210edf3fea36ca9dd2b448533437d0b20 (patch)
treef7aee773e752bde9f46527b2e6b6d87682c66e50 /tests/server
parent2278e8f1ba2561450dedb57e9f6d5722e5ebc02a (diff)
sread now returns ssize_t
Diffstat (limited to 'tests/server')
-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);