r9876: Fix some 64-bit warnings for Itanium machine.
authorTim Potter <tpot@samba.org>
Thu, 1 Sep 2005 06:39:19 +0000 (06:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:36:19 +0000 (13:36 -0500)
(This used to be commit 9e375d82e828879704442e5a27a9938015953de2)

source4/torture/raw/read.c
source4/torture/raw/search.c

index 3e27f4b0bb6a1393b9b529f281175557c5c94262..d7060ee2c01dd6d4252e8cb94c532e29bf424cd3 100644 (file)
@@ -33,8 +33,8 @@
 
 #define CHECK_VALUE(v, correct) do { \
        if ((v) != (correct)) { \
-               printf("(%s) Incorrect value %s=%d - should be %d\n", \
-                      __location__, #v, v, correct); \
+               printf("(%s) Incorrect value %s=%ld - should be %ld\n", \
+                      __location__, #v, (long)v, (long)correct); \
                ret = False; \
                goto done; \
        }} while (0)
index 96ceaf0a02f224811056795dd6062c7a81938fb5..88fb0af581f2ef26d96a34d0ab9310646b7d431a 100644 (file)
@@ -547,8 +547,8 @@ static NTSTATUS multiple_search(struct smbcli_state *cli,
 
 #define CHECK_VALUE(v, correct) do { \
        if ((v) != (correct)) { \
-               printf("(%s) Incorrect value %s=%d - should be %d\n", \
-                      __location__, #v, v, (int)correct); \
+               printf("(%s) Incorrect value %s=%ld - should be %ld\n", \
+                      __location__, #v, (long)v, (long)correct); \
                ret = False; \
                goto done; \
        }} while (0)