aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));