Alexandre Julliard : winetest: Fix a compiler warning with the size_t type.

Alexandre Julliard julliard at winehq.org
Mon Jul 21 08:51:49 CDT 2008


Module: wine
Branch: master
Commit: b4e26f04199ecefc545b8f18f5b1f0ef360addec
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b4e26f04199ecefc545b8f18f5b1f0ef360addec

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jul 21 13:00:14 2008 +0200

winetest: Fix a compiler warning with the size_t type.

---

 programs/winetest/send.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/winetest/send.c b/programs/winetest/send.c
index c8372f3..947f2c1 100644
--- a/programs/winetest/send.c
+++ b/programs/winetest/send.c
@@ -109,7 +109,7 @@ send_file (const char *name)
 #define BUFLEN 8192
     char buffer[BUFLEN+1];
     DWORD bytes_read, filesize;
-    size_t total;
+    size_t total, count;
     char *str;
     int ret;
 
@@ -208,9 +208,9 @@ send_file (const char *name)
         return 1;
     }
 
-    str = strmake (&bytes_read, "Received %s (%d bytes).\n",
+    str = strmake (&count, "Received %s (%d bytes).\n",
                    name, filesize);
-    ret = memcmp (str, buffer + total - bytes_read, bytes_read);
+    ret = memcmp (str, buffer + total - count, count);
     free (str);
     if (ret) {
         buffer[total] = 0;




More information about the wine-cvs mailing list