aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-14 13:46:08 +0000
committerYang Tse <yangsita@gmail.com>2007-02-14 13:46:08 +0000
commit5a267c43121761a3fe548b96abf0832cbd10901f (patch)
tree08aa7792d7e01405e94e5ef75732f7d113893370
parentfbcf86b83ee2a49b5627cc45545777f2a3fc488a (diff)
compiler warning fix
-rw-r--r--tests/server/sws.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 34e5aa22f..57c4b5eb5 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -460,7 +460,7 @@ void storerequest(char *reqbuf)
if (reqbuf == NULL)
return;
- totalsize = strlen(reqbuf);
+ totalsize = (ssize_t)strlen(reqbuf);
if (totalsize == 0)
return;
@@ -475,8 +475,8 @@ void storerequest(char *reqbuf)
writeleft = totalsize;
do {
- written = fwrite((void *) &reqbuf[totalsize-writeleft],
- 1, (size_t)writeleft, dump);
+ written = (ssize_t)fwrite((void *) &reqbuf[totalsize-writeleft],
+ 1, (size_t)writeleft, dump);
if (written > 0)
writeleft -= written;
} while ((writeleft > 0) && ((error = errno) == EINTR));