summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-01 11:17:37 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-01 11:31:33 +0100
commit2a25f7515a68938249beef47546465889ca1c734 (patch)
tree5ee7d705aeb666f0d201c99bebf28a715d9567d9 /source4/torture/raw
parentc8bcf821191ab88a82954fd485087522d3c2ef05 (diff)
downloadsamba-2a25f7515a68938249beef47546465889ca1c734.tar.gz
samba-2a25f7515a68938249beef47546465889ca1c734.tar.bz2
samba-2a25f7515a68938249beef47546465889ca1c734.zip
s4:torture - suppress printf "%llu" on uint64_t variables warnings
The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on all regular platforms does also. Therefore simply add a cast to "unsigned long long".
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/lock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c
index 1643005f27..17757e4116 100644
--- a/source4/torture/raw/lock.c
+++ b/source4/torture/raw/lock.c
@@ -1611,11 +1611,11 @@ static bool test_zerobytelocks(struct torture_context *tctx, struct smbcli_state
i++) {
torture_comment(tctx, " ... {%d, %llu, %llu} + {%d, %llu, %llu} = %s\n",
zero_byte_tests[i].lock1.pid,
- zero_byte_tests[i].lock1.offset,
- zero_byte_tests[i].lock1.count,
+ (unsigned long long) zero_byte_tests[i].lock1.offset,
+ (unsigned long long) zero_byte_tests[i].lock1.count,
zero_byte_tests[i].lock2.pid,
- zero_byte_tests[i].lock2.offset,
- zero_byte_tests[i].lock2.count,
+ (unsigned long long) zero_byte_tests[i].lock2.offset,
+ (unsigned long long) zero_byte_tests[i].lock2.count,
nt_errstr(zero_byte_tests[i].exp_status));
/* Lock both locks. */