tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[PATCH 2/4] Fix if_wg.c build with -Werror=array-parameter enabled
---
sys/net/if_wg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c
index 696ad075d05e..8d52b8091af1 100644
--- a/sys/net/if_wg.c
+++ b/sys/net/if_wg.c
@@ -665,7 +665,7 @@ static struct mbuf *
static int wg_send_data_msg(struct wg_peer *, struct wg_session *,
struct mbuf *);
static int wg_send_cookie_msg(struct wg_softc *, struct wg_peer *,
- const uint32_t, const uint8_t [], const struct sockaddr *);
+ const uint32_t, const uint8_t [WG_MAC_LEN], const struct sockaddr *);
static int wg_send_handshake_msg_resp(struct wg_softc *, struct wg_peer *,
struct wg_session *, const struct wg_msg_init *);
static void wg_send_keepalive_msg(struct wg_peer *, struct wg_session *);
@@ -675,7 +675,7 @@ static struct wg_peer *
struct psref *);
static struct wg_peer *
wg_lookup_peer_by_pubkey(struct wg_softc *,
- const uint8_t [], struct psref *);
+ const uint8_t [WG_STATIC_KEY_LEN], struct psref *);
static struct wg_session *
wg_lookup_session_by_index(struct wg_softc *,
--
2.33.1
Home |
Main Index |
Thread Index |
Old Index