git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35cd91e
)
s4:torture: correctly cast printf() argument
author
Ralph Wuerthner
<ralph.wuerthner@de.ibm.com>
Thu, 12 Sep 2019 08:22:58 +0000
(10:22 +0200)
committer
Jeremy Allison
<jra@samba.org>
Thu, 12 Sep 2019 16:16:28 +0000
(16:16 +0000)
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>
source4/torture/smb2/create.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/create.c
b/source4/torture/smb2/create.c
index 3fd99de0a3a11a636d30e8c3f339adf1d3a9039d..f3eca493e4bafc35e292fd7f0c0cc0054e747e0f 100644
(file)
--- 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)
/*