s3:utils: Fix size type in log2pcaphex
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 18:47:04 +0000 (19:47 +0100)
committerJeremy 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

index f31efa10df8771688302d0ad1374a1bb3ef0515c..5310982bed3f8b871f42f915410fd697829708b3 100644 (file)
@@ -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" },