git: 7f94f7ffad23 - stable/12 - ipfilter printfieldhdr: remove set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Dec 2021 01:22:11 UTC
The branch stable/12 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=7f94f7ffad23ec867221e12aa3f1737560058c2c
commit 7f94f7ffad23ec867221e12aa3f1737560058c2c
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-11 04:51:01 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-12-14 01:19:37 +0000
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 3cc22a655a63..f796f6fed62f 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++;