From 5a267c43121761a3fe548b96abf0832cbd10901f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 14 Feb 2007 13:46:08 +0000 Subject: compiler warning fix --- tests/server/sws.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/server') 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)); -- cgit v1.2.3