From: Andreas Schneider Date: Thu, 7 Dec 2017 18:47:04 +0000 (+0100) Subject: s3:utils: Fix size type in log2pcaphex X-Git-Tag: talloc-2.1.12~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfb69482c4a500a486fe8b4cb6f3841e58d00f56;p=thirdparty%2Fsamba.git s3:utils: Fix size type in log2pcaphex This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c index f31efa10df8..5310982bed3 100644 --- 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; - int 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" },