From 277e5da4c511b41bf9845e4d1144a8fe2311dee4 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Fri, 10 Dec 2021 20:51:01 -0800 Subject: [PATCH] ipfilter printfieldhdr: remove set-but-not-unused vars (cherry picked from commit edcdd4f6445ad50c8f7c6e974d0216c5be9356d5) --- contrib/ipfilter/lib/printfieldhdr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/ipfilter/lib/printfieldhdr.c b/contrib/ipfilter/lib/printfieldhdr.c index 3cc22a655a6..f796f6fed62 100644 --- a/contrib/ipfilter/lib/printfieldhdr.c +++ b/contrib/ipfilter/lib/printfieldhdr.c @@ -16,10 +16,9 @@ printfieldhdr(words, field) { wordtab_t *w; char *s, *t; - int i; if (field->w_value == -2) { - for (i = 0, w = words; w->w_word != NULL; ) { + for (w = words; w->w_word != NULL; ) { if (w->w_value > 0) { printfieldhdr(words, w); w++;