aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-01 12:45:54 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-06-01 15:27:11 +0200
commit2265d72ca1a5e2359c3c6fd69c7cc72d11c66621 (patch)
tree8d09ab87b456e81f649ea3b2c0ca08632a641595
parentnetns: use massive datagrams (diff)
downloadwireguard-freebsd-2265d72ca1a5e2359c3c6fd69c7cc72d11c66621.tar.xz
wireguard-freebsd-2265d72ca1a5e2359c3c6fd69c7cc72d11c66621.zip
if_wg: add braces for 12.1 compiler warning
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/selftest/allowedips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selftest/allowedips.c b/src/selftest/allowedips.c
index 889118a48681..fe02ab251e64 100644
--- a/src/selftest/allowedips.c
+++ b/src/selftest/allowedips.c
@@ -218,7 +218,7 @@ static bool randomized_test(void)
uint8_t ip[16], mutate_mask[16], mutated[16];
struct wg_peer **peers, *peer;
struct horrible_allowedips h;
- struct wg_softc sc = { 0 };
+ struct wg_softc sc = {{ 0 }};
bool ret = false;
peers = mallocarray(NUM_PEERS, sizeof(*peers), M_WG, M_NOWAIT | M_ZERO);
if (!peers) {
@@ -446,7 +446,7 @@ static bool wg_allowedips_selftest(void)
struct wg_peer *a = init_peer(), *b = init_peer(), *c = init_peer(),
*d = init_peer(), *e = init_peer(), *f = init_peer(),
*g = init_peer(), *h = init_peer();
- struct wg_softc sc = { 0 };
+ struct wg_softc sc = {{ 0 }};
struct wg_aip *iter_node;
size_t i = 0, count = 0;
bool success = false;