git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63ed7b
)
s3:param: Fix size types
author
Andreas Schneider
<asn@samba.org>
Thu, 7 Dec 2017 16:03:37 +0000
(17:03 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 20 Mar 2018 22:16:15 +0000
(23:16 +0100)
This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index b1b502c117e47013aab437dc9038889eb21642a6..520d0660ccf36845c9b5a7e921863be2e732208f 100644
(file)
--- a/
source3/param/loadparm.c
+++ b/
source3/param/loadparm.c
@@
-1833,8
+1833,8
@@
static bool is_synonym_of(int parm1, int parm2, bool *inverse)
static void show_parameter(int parmIndex)
{
-
in
t enumIndex, flagIndex;
-
in
t parmIndex2;
+
size_
t enumIndex, flagIndex;
+
size_
t parmIndex2;
bool hadFlag;
bool hadSyn;
bool inverse;