]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: No prototype and uninited variables
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 25 Aug 2018 22:28:19 +0000 (18:28 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 25 Aug 2018 23:13:32 +0000 (19:13 -0400)
Add a header to cleanup no declaration and properly
wrapper some variables to appropriate #ifdef.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/if_ioctl.c
zebra/zebra_vxlan.c

index d17a9cf4986df3f18096dfc1bccbdff51bacb579..176bb2bbad591dda7fba121f171861af7cb29b46 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "zebra/interface.h"
 #include "zebra/rib.h"
+#include "zebra/rt.h"
 
 #include <ifaddrs.h>
 
index f63879159d7ecd4d3cd616f2ee2ec0bbbf68d0f4..b0fc0a39bd85663da4bee0ee5ecf0acc88e5e75e 100644 (file)
@@ -1558,7 +1558,9 @@ static int zvni_neigh_install(zebra_vni_t *zvni, zebra_neigh_t *n)
        struct zebra_if *zif;
        struct zebra_l2info_vxlan *vxl;
        struct interface *vlan_if;
+#ifdef GNU_LINUX
        uint8_t flags;
+#endif
        int ret = 0;
 
        if (!(n->flags & ZEBRA_NEIGH_REMOTE))
@@ -3369,7 +3371,9 @@ static int zl3vni_nh_del(zebra_l3vni_t *zl3vni, zebra_neigh_t *n)
  */
 static int zl3vni_nh_install(zebra_l3vni_t *zl3vni, zebra_neigh_t *n)
 {
+#ifdef GNU_LINUX
        uint8_t flags;
+#endif
        int ret = 0;
 
        if (!is_l3vni_oper_up(zl3vni))