summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-02-14 15:07:47 +0100
committerGitHub <noreply@github.com>2019-02-14 15:07:47 +0100
commit1d0c39fbd8f3abe5bec4d879ff9a9221d72a3598 (patch)
treef4d536e1a60c3769dae3edece3d6625007930d9c /zebra
parentMerge pull request #3794 from donaldsharp/sharp_import_check (diff)
parentzebra: Fix CLANG suggestion for braces on init of struct (diff)
downloadfrr-1d0c39fbd8f3abe5bec4d879ff9a9221d72a3598.tar.xz
frr-1d0c39fbd8f3abe5bec4d879ff9a9221d72a3598.zip
Merge pull request #3791 from sworleys/RT-Braces-rtadv
zebra: Fix CLANG suggestion for braces on init of struct
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));