test.h: Move some global variables from LONG to int.
Michael Stefaniuc
mstefani at redhat.de
Thu Sep 21 15:18:56 CDT 2006
Both have the same size (where Wine is concerned) and the rest of the
file mostly uses the non-Windows types anyway.
This removes 153 printf format warnings when compiled for Win64.
---
include/wine/test.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/wine/test.h b/include/wine/test.h
index 8e2bc62..cbae31d 100644
--- a/include/wine/test.h
+++ b/include/wine/test.h
@@ -167,10 +167,10 @@ static char** winetest_argv;
static const struct test *current_test; /* test currently being run */
-static LONG successes; /* number of successful tests */
-static LONG failures; /* number of failures */
-static LONG todo_successes; /* number of successful tests inside todo block */
-static LONG todo_failures; /* number of failures inside todo block */
+static int successes; /* number of successful tests */
+static int failures; /* number of failures */
+static int todo_successes; /* number of successful tests inside todo block */
+static int todo_failures; /* number of failures inside todo block */
/* The following data must be kept track of on a per-thread basis */
typedef struct
@@ -371,7 +371,7 @@ static int run_test( const char *name )
if (winetest_debug)
{
- fprintf( stdout, "%s: %ld tests executed, %ld marked as todo, %ld %s.\n",
+ fprintf( stdout, "%s: %d tests executed, %d marked as todo, %d %s.\n",
name, successes + failures + todo_successes + todo_failures,
todo_successes, failures + todo_failures,
(failures + todo_failures != 1) ? "failures" : "failure" );
--
1.4.2
--
Michael Stefaniuc Tel.: +49-711-96437-199
Sr. Network Engineer Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani at redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060921/134f1682/attachment.pgp
More information about the wine-patches
mailing list