From: Stephen Worley Date: Tue, 12 Feb 2019 20:24:00 +0000 (-0500) Subject: zebra: Fix CLANG suggestion for braces on init of struct X-Git-Tag: 7.1_pulled~245^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=844e918027954744b759fac8f9263b80db5449d0;p=mirror%2Ffrr.git zebra: Fix CLANG suggestion for braces on init of struct CLANG was throwing an error because struct rtadv_rdnss(dnssl) was being initialized with = {0} instead of {}. Change to be the latter. Signed-off-by: Stephen Worley --- diff --git a/zebra/rtadv.c b/zebra/rtadv.c index fadf8317cc..5088e2e8e1 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -1780,7 +1780,7 @@ DEFUN(ipv6_nd_rdnss, { VTY_DECLVAR_CONTEXT(interface, ifp); struct zebra_if *zif = ifp->info; - struct rtadv_rdnss rdnss = {0}; + struct rtadv_rdnss rdnss = {}; if (inet_pton(AF_INET6, argv[3]->arg, &rdnss.addr) != 1) { vty_out(vty, "Malformed IPv6 address\n"); @@ -1813,7 +1813,7 @@ DEFUN(no_ipv6_nd_rdnss, { VTY_DECLVAR_CONTEXT(interface, ifp); struct zebra_if *zif = ifp->info; - struct rtadv_rdnss rdnss = {0}; + struct rtadv_rdnss rdnss = {}; if (inet_pton(AF_INET6, argv[4]->arg, &rdnss.addr) != 1) { vty_out(vty, "Malformed IPv6 address\n"); @@ -1839,7 +1839,7 @@ DEFUN(ipv6_nd_dnssl, { VTY_DECLVAR_CONTEXT(interface, ifp); struct zebra_if *zif = ifp->info; - struct rtadv_dnssl dnssl = {0}; + struct rtadv_dnssl dnssl = {}; size_t len; int ret; @@ -1889,7 +1889,7 @@ DEFUN(no_ipv6_nd_dnssl, { VTY_DECLVAR_CONTEXT(interface, ifp); struct zebra_if *zif = ifp->info; - struct rtadv_dnssl dnssl = {0}; + struct rtadv_dnssl dnssl = {}; size_t len; len = strlcpy(dnssl.name, argv[4]->arg, sizeof(dnssl.name));