diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-25 18:28:19 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-25 19:13:32 -0400 |
| commit | f7dae31211dedf2e66f7d8bebdc9ff7f148eceef (patch) | |
| tree | fbdaf83655611839a3ea4acb40d61f8e70aaef78 | |
| parent | 184ce1c5d16850c56830ad02a6cb22151f553cf8 (diff) | |
zebra: No prototype and uninited variables
Add a header to cleanup no declaration and properly
wrapper some variables to appropriate #ifdef.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | zebra/if_ioctl.c | 1 | ||||
| -rw-r--r-- | zebra/zebra_vxlan.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c index d17a9cf498..176bb2bbad 100644 --- a/zebra/if_ioctl.c +++ b/zebra/if_ioctl.c @@ -37,6 +37,7 @@ #include "zebra/interface.h" #include "zebra/rib.h" +#include "zebra/rt.h" #include <ifaddrs.h> diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index f63879159d..b0fc0a39bd 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -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)) |
