summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-02-12 21:24:00 +0100
committerStephen Worley <sworley@cumulusnetworks.com>2019-02-12 21:24:00 +0100
commit844e918027954744b759fac8f9263b80db5449d0 (patch)
tree174c1dfac0c3a0db3629c338c53c6b1c4e040d2f /zebra
parentMerge pull request #3781 from donaldsharp/pbr_debug (diff)
downloadfrr-844e918027954744b759fac8f9263b80db5449d0.tar.xz
frr-844e918027954744b759fac8f9263b80db5449d0.zip
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 <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/rtadv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c
index fadf8317c..5088e2e8e 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));