summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>2019-09-12 10:22:58 +0200
committerJeremy Allison <jra@samba.org>2019-09-12 16:16:28 +0000
commit156eb9120e66fe58328decb035a4d926396f6a59 (patch)
tree379948745368cbd17bc0a9371fe21a1b234dc958
parent35cd91ee4d8fcd1034787882fb2e2e2ab9f8bd34 (diff)
downloadsamba-156eb9120e66fe58328decb035a4d926396f6a59.tar.gz
s4:torture: correctly cast printf() argument
In most cases sattrib is passed as a long int literal. Avoid compile errors by casting the value passed to printf(). Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source4/torture/smb2/create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/create.c b/source4/torture/smb2/create.c
index 3fd99de0a3a..f3eca493e4b 100644
--- a/source4/torture/smb2/create.c
+++ b/source4/torture/smb2/create.c
@@ -123,7 +123,7 @@
if (!NT_STATUS_IS_OK(status)) { \
torture_comment(tctx, \
"(%s) Failed to set attrib 0x%x on %s\n", \
- __location__, sattrib, fname); \
+ __location__, (unsigned int)(sattrib), fname); \
}} while (0)
/*