mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 21:16:14 +00:00
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>
This commit is contained in:
parent
184ce1c5d1
commit
f7dae31211
@ -37,6 +37,7 @@
|
||||
|
||||
#include "zebra/interface.h"
|
||||
#include "zebra/rib.h"
|
||||
#include "zebra/rt.h"
|
||||
|
||||
#include <ifaddrs.h>
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user