git: 7077a20868b0 - main - pf: Fix prototype of pf_insert_src_node prototype to match its definition

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 17 Feb 2025 19:16:13 UTC
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);