diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-14 13:46:08 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-14 13:46:08 +0000 |
commit | 5a267c43121761a3fe548b96abf0832cbd10901f (patch) | |
tree | 08aa7792d7e01405e94e5ef75732f7d113893370 | |
parent | fbcf86b83ee2a49b5627cc45545777f2a3fc488a (diff) |
compiler warning fix
-rw-r--r-- | tests/server/sws.c | 6 |
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)); |