From 844e918027954744b759fac8f9263b80db5449d0 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 12 Feb 2019 15:24:00 -0500 Subject: [PATCH] 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 --- zebra/rtadv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); -- 2.39.5