Date: Tue, 14 Dec 2021 01:20:58 GMT From: Cy Schubert <cy@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 277e5da4c511 - stable/13 - ipfilter printfieldhdr: remove set-but-not-unused vars Message-ID: <202112140120.1BE1KwuJ060810@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=277e5da4c511b41bf9845e4d1144a8fe2311dee4 commit 277e5da4c511b41bf9845e4d1144a8fe2311dee4 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:14:28 +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++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112140120.1BE1KwuJ060810>