Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2025 19:16:13 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7077a20868b0 - main - pf: Fix prototype of pf_insert_src_node prototype to match its definition
Message-ID:  <202502171916.51HJGD6W083889@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=7077a20868b0e88fccabacd329f3cd666f159677

commit 7077a20868b0e88fccabacd329f3cd666f159677
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-02-17 19:14:05 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-02-17 19:14:05 +0000

    pf: Fix prototype of pf_insert_src_node prototype to match its definition
    
    Reported by:    GCC -Warray-parameter
    Fixes:          07e070ef0869 ("pf: Add support for multiple source node types")
---
 sys/netpfil/pf/pf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 236e68457e81..5e5bd744343c 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -386,8 +386,8 @@ static void		 pf_counters_inc(int, struct pf_pdesc *,
 			    struct pf_kstate *, struct pf_krule *,
 			    struct pf_krule *);
 static void		 pf_overload_task(void *v, int pending);
-static u_short		 pf_insert_src_node(struct pf_ksrc_node **,
-			    struct pf_srchash **, struct pf_krule *,
+static u_short		 pf_insert_src_node(struct pf_ksrc_node *[PF_SN_MAX],
+			    struct pf_srchash *[PF_SN_MAX], struct pf_krule *,
 			    struct pf_addr *, sa_family_t, struct pf_addr *,
 			    struct pfi_kkif *, pf_sn_types_t);
 static u_int		 pf_purge_expired_states(u_int, int);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502171916.51HJGD6W083889>