From: deraadt Date: Fri, 26 Feb 2021 00:16:41 +0000 (+0000) Subject: gcc is more strict about union decls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0511cb0776866ebcafd1fb61401313d80ed1300e;p=openbsd gcc is more strict about union decls ok dlg --- diff --git a/sys/net/if_veb.c b/sys/net/if_veb.c index b4d043f9c81..3df480c7673 100644 --- a/sys/net/if_veb.c +++ b/sys/net/if_veb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_veb.c,v 1.8 2021/02/24 01:20:03 dlg Exp $ */ +/* $OpenBSD: if_veb.c,v 1.9 2021/02/26 00:16:41 deraadt Exp $ */ /* * Copyright (c) 2021 David Gwynne @@ -78,10 +78,10 @@ union veb_addr { }; static const union veb_addr veb_8021_group = { - .ea = { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x00 } + .ea = { { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x00 } } }; static const union veb_addr veb_8021_group_mask = { - .ea = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0 } + .ea = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0 } } }; /* SIOCBRDGIFFLGS, SIOCBRDGIFFLGS */