From: Roy Marples Date: Mon, 22 Jun 2020 12:18:26 +0000 (+0100) Subject: Linux: fix a compile warning for older compilers X-Git-Tag: v9.1.3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f2ebb9bbfee595708407fab3f493b551c9f338;p=thirdparty%2Fdhcpcd.git Linux: fix a compile warning for older compilers --- diff --git a/src/if-linux.c b/src/if-linux.c index b51878d7..c9e02503 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -1598,9 +1598,11 @@ bpf_open(const struct interface *ifp, struct sockaddr_ll sll; struct sockaddr_storage ss; } su = { - .sll.sll_family = PF_PACKET, - .sll.sll_protocol = htons(ETH_P_ALL), - .sll.sll_ifindex = (int)ifp->index, + .sll = { + .sll_family = PF_PACKET, + .sll_protocol = htons(ETH_P_ALL), + .sll_ifindex = (int)ifp->index, + } }; #ifdef PACKET_AUXDATA int n;