aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-12 06:09:53 +0000
committerYang Tse <yangsita@gmail.com>2006-07-12 06:09:53 +0000
commit88a1a10e6fcf024c1a5690bfa0a5b94838beebd0 (patch)
treed68014c5e36a0ce4dd578f79e9c05e563a0996b4 /tests
parent624e657210edf3fea36ca9dd2b448533437d0b20 (diff)
Pay attention when typecasting an operation
Diffstat (limited to 'tests')
-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 7d1b76ea1..7cc0e1cbe 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) {
- ssize_t 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);