Date: Mon, 6 Mar 2023 19:26:58 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1be25bdb730f - main - pfctl: remove set but unused variable Message-ID: <202303061926.326JQwg3004191@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=1be25bdb730ff07355cd6f5cb087d58e506c5519 commit 1be25bdb730ff07355cd6f5cb087d58e506c5519 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2023-03-06 07:10:27 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2023-03-06 18:22:35 +0000 pfctl: remove set but unused variable In pfctl_show_ifaces() `i` is set, but never used. Remove it. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/pfctl_table.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c index db338fbe0876..3d1aef5571d6 100644 --- a/sbin/pfctl/pfctl_table.c +++ b/sbin/pfctl/pfctl_table.c @@ -585,7 +585,6 @@ pfctl_show_ifaces(const char *filter, int opts) { struct pfr_buffer b; struct pfi_kif *p; - int i = 0; bzero(&b, sizeof(b)); b.pfrb_type = PFRB_IFACES; @@ -598,7 +597,6 @@ pfctl_show_ifaces(const char *filter, int opts) } if (b.pfrb_size <= b.pfrb_msize) break; - i++; } if (opts & PF_OPT_SHOWALL) pfctl_print_title("INTERFACES:");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303061926.326JQwg3004191>