git: 20c48f090b27 - main - ipfilter: Remove unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Nov 2025 23:32:20 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=20c48f090b270d0124d5f0b31c6f3a639efbbc80
commit 20c48f090b270d0124d5f0b31c6f3a639efbbc80
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-11-26 23:24:17 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-11-26 23:31:37 +0000
ipfilter: Remove unused variable
Reported by: jlduran
Fixes: eda1756d0454, 821774dfbdaa
MFC after: 1 week
X-MFC with: eda1756d0454, 821774dfbdaa
---
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 0de5378322df..166b7bfd9abe 100644
--- a/sys/netpfil/ipfilter/netinet/fil.c
+++ b/sys/netpfil/ipfilter/netinet/fil.c
@@ -4403,7 +4403,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 44ab7e9283de..d83454185609 100644
--- a/sys/netpfil/ipfilter/netinet/ip_nat.c
+++ b/sys/netpfil/ipfilter/netinet/ip_nat.c
@@ -974,7 +974,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;