git: 27b1e9d16f30 - stable/13 - ipfilter: Remove unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jan 2026 20:02:55 UTC
The branch stable/13 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=27b1e9d16f30b441259f90e449d87f0fc9594854
commit 27b1e9d16f30b441259f90e449d87f0fc9594854
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-11-26 23:24:17 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-01-05 03:40:10 +0000
ipfilter: Remove unused variable
Reported by: jlduran
Fixes: eda1756d0454, 821774dfbdaa
MFC after: 1 week
X-MFC with: eda1756d0454, 821774dfbdaa
(cherry picked from commit 20c48f090b270d0124d5f0b31c6f3a639efbbc80)
---
sys/netpfil/ipfilter/netinet/fil.c | 2 +-
sys/netpfil/ipfilter/netinet/ip_nat.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/netpfil/ipfilter/netinet/fil.c b/sys/netpfil/ipfilter/netinet/fil.c
index 545ef657217d..5161e6472a60 100644
--- a/sys/netpfil/ipfilter/netinet/fil.c
+++ b/sys/netpfil/ipfilter/netinet/fil.c
@@ -4407,7 +4407,7 @@ int
frrequest(ipf_main_softc_t *softc, int unit, ioctlcmd_t req, caddr_t data,
int set, int makecopy)
{
- int error = 0, in, family, need_free = 0, interr, i;
+ int error = 0, in, family, need_free = 0, interr;
int interr_tbl[3] = { 152, 156, 153};
enum { OP_ADD, /* add rule */
OP_REM, /* remove rule */
diff --git a/sys/netpfil/ipfilter/netinet/ip_nat.c b/sys/netpfil/ipfilter/netinet/ip_nat.c
index 1bad910d1db1..4a2f9ec05479 100644
--- a/sys/netpfil/ipfilter/netinet/ip_nat.c
+++ b/sys/netpfil/ipfilter/netinet/ip_nat.c
@@ -978,7 +978,7 @@ ipf_nat_ioctl(ipf_main_softc_t *softc, caddr_t data, ioctlcmd_t cmd,
int mode, int uid, void *ctx)
{
ipf_nat_softc_t *softn = softc->ipf_nat_soft;
- int error = 0, ret, arg, getlock, interr, i;
+ int error = 0, ret, arg, getlock, interr;
int interr_tbl[3] = { 60077, 60081, 60078 };
ipnat_t *nat, *nt, *n;
ipnat_t natd;