summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2012-02-25 18:24:37 +0100
committerAndrew Bartlett <abartlet@samba.org>2012-03-01 22:04:46 +1100
commit31bf81a03c222f8c42996aebb127a31d23dc799e (patch)
tree4a9573d020d322cfd54850b3377cdac8a2b7c02f /source4
parent8ea795672d8063db2f474a4ac11a1b94f386096d (diff)
downloadsamba-31bf81a03c222f8c42996aebb127a31d23dc799e.tar.gz
samba-31bf81a03c222f8c42996aebb127a31d23dc799e.tar.bz2
samba-31bf81a03c222f8c42996aebb127a31d23dc799e.zip
s4:torture/smb2/ioctl.c - quiet format specifier warnings on 32 bit
Achieve this by using platform independent casts.
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/ioctl.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c
index a54702ddb9..cbef4d731e 100644
--- a/source4/torture/smb2/ioctl.c
+++ b/source4/torture/smb2/ioctl.c
@@ -149,16 +149,17 @@ static bool check_pattern(struct smb2_tree *tree, TALLOC_CTX *mem_ctx,
printf("read failed - %s\n", nt_errstr(status));
return false;
} else if (len != r.out.data.length) {
- printf("read data len mismatch got %zd, expected %lu\n",
- r.out.data.length, len);
+ printf("read data len mismatch got %zu, expected %llu\n",
+ r.out.data.length, (unsigned long long)len);
return false;
}
for (i = 0; i <= len - 8; i += 8, patt_off += 8) {
if (BVAL(r.out.data.data, i) != patt_hash(patt_off)) {
- printf("pattern bad at %lu, got %lx, expected %lx\n",
- i, BVAL(r.out.data.data, i),
- patt_hash(patt_off));
+ printf("pattern bad at %llu, got %llx, expected %llx\n",
+ (unsigned long long)i,
+ (unsigned long long)BVAL(r.out.data.data, i),
+ (unsigned long long)patt_hash(patt_off));
return false;
}
}