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:
c2e9fb6
)
s3:utils: Fix size type in log2pcaphex
author
Andreas Schneider
<asn@samba.org>
Thu, 7 Dec 2017 18:47:04 +0000
(19:47 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +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/utils/log2pcaphex.c
patch
|
blob
|
history
diff --git
a/source3/utils/log2pcaphex.c
b/source3/utils/log2pcaphex.c
index f31efa10df8771688302d0ad1374a1bb3ef0515c..5310982bed3f8b871f42f915410fd697829708b3 100644
(file)
--- a/
source3/utils/log2pcaphex.c
+++ b/
source3/utils/log2pcaphex.c
@@
-305,7
+305,7
@@
int main(int argc, const char **argv)
long data_offset = 0;
long data_length;
long data_bytes_read = 0;
-
in
t in_packet = 0;
+
size_
t in_packet = 0;
struct poptOption long_options[] = {
POPT_AUTOHELP
{ "quiet", 'q', POPT_ARG_NONE, &quiet, 0, "Be quiet, don't output warnings" },