git: efcc183f9b0d - main - pflog: remove unused argument from pflogattach()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Jun 2026 19:34:25 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=efcc183f9b0dad94b7e954556e6e2515ec0f85be
commit efcc183f9b0dad94b7e954556e6e2515ec0f85be
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-06-21 16:19:22 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-06-25 19:34:05 +0000
pflog: remove unused argument from pflogattach()
---
sys/netpfil/pf/if_pflog.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/netpfil/pf/if_pflog.c b/sys/netpfil/pf/if_pflog.c
index cb96d2fcc44c..4167c7818415 100644
--- a/sys/netpfil/pf/if_pflog.c
+++ b/sys/netpfil/pf/if_pflog.c
@@ -87,7 +87,7 @@
static int pflogoutput(struct ifnet *, struct mbuf *,
const struct sockaddr *, struct route *);
-static void pflogattach(int);
+static void pflogattach(void);
static int pflogifs_resize(size_t);
static int pflogioctl(struct ifnet *, u_long, caddr_t);
static void pflogstart(struct ifnet *);
@@ -106,7 +106,7 @@ VNET_DEFINE(struct ifnet **, pflogifs); /* for fast access */
#define V_pflogifs VNET(pflogifs)
static void
-pflogattach(int npflog __unused)
+pflogattach(void)
{
struct if_clone_addreq req = {
.create_f = pflog_clone_create,
@@ -316,7 +316,7 @@ static void
vnet_pflog_init(const void *unused __unused)
{
- pflogattach(1);
+ pflogattach();
}
VNET_SYSINIT(vnet_pflog_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_ANY,
vnet_pflog_init, NULL);