summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/oplock.c
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/smb2/oplock.c
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/smb2/oplock.c')
-rw-r--r--source4/torture/smb2/oplock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index aa0b92dc80..5261b58473 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -3514,7 +3514,8 @@ static bool torture_oplock_handler_hold(struct smb2_transport *transport,
if (i == ARRAY_SIZE(hold_info)) {
printf("oplock break for unknown handle 0x%llx%llx\n",
- handle->data[0], handle->data[1]);
+ (unsigned long long) handle->data[0],
+ (unsigned long long) handle->data[1]);
return false;
}