summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2022-12-27 20:13:04 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2022-12-27 20:13:04 +0000
commit57bcd320e2c92d4003009ff364ee5cf6c33a465b (patch)
treeb9e6d7ac97a719aa327ff140fce95f02e4d8f51f /sys/net/pf.c
parentf6c770ef68ef15fa78863f861947f4249c092ae3 (diff)
Fix array bounds mismatch with clang 15
New warning -Warray-parameter is a bit overzealous. ok millert@ tb@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 1ee69b734e7..80095c061f3 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.1163 2022/12/24 05:20:32 dlg Exp $ */
+/* $OpenBSD: pf.c,v 1.1164 2022/12/27 20:13:03 patrick Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -201,7 +201,7 @@ static __inline int pf_create_state(struct pf_pdesc *, struct pf_rule *,
struct pf_state_key **, struct pf_state_key **,
int *, struct pf_state **, int,
struct pf_rule_slist *, struct pf_rule_actions *,
- struct pf_src_node *[]);
+ struct pf_src_node **);
static __inline int pf_state_key_addr_setup(struct pf_pdesc *, void *,
int, struct pf_addr *, int, struct pf_addr *,
int, int);