From: Andreas Schneider Date: Fri, 3 Feb 2023 19:35:20 +0000 (+0100) Subject: s3:utils: Remove unused variable X-Git-Tag: talloc-2.4.1~1688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e57fa88119920c5608a5096e5beaa910d117c644;p=thirdparty%2Fsamba.git s3:utils: Remove unused variable source3/utils/log2pcaphex.c:138:13: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] static int i = 0; ^ Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c index 2ee2f82af98..8113d8e0495 100644 --- a/source3/utils/log2pcaphex.c +++ b/source3/utils/log2pcaphex.c @@ -135,9 +135,7 @@ static void print_pcap_header(FILE *out) static void print_pcap_packet(FILE *out, unsigned char *data, long length, long caplen) { - static int i = 0; struct tcpdump_packet p; - i++; p.ts.tv_usec = 0; p.ts.tv_sec = 0; p.caplen = caplen;