Merge pull request #2920 from donaldsharp/bsd_warnings

Bsd warnings
This commit is contained in:
David Lamparter 2018-08-26 04:07:35 +02:00 committed by GitHub
commit b5d79dbe71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -43,6 +43,7 @@
#include "isisd/isis_constants.h"
#include "isisd/isis_circuit.h"
#include "isisd/isis_network.h"
#include "isisd/isis_pdu.h"
#include "privs.h"

View File

@ -107,7 +107,7 @@ struct log_ref *log_ref_get(uint32_t code)
void log_ref_display(struct vty *vty, uint32_t code, bool json)
{
struct log_ref *ref;
struct json_object *top, *obj;
struct json_object *top = NULL, *obj = NULL;
struct list *errlist;
struct listnode *ln;

View File

@ -37,6 +37,7 @@
#include "zebra/interface.h"
#include "zebra/rib.h"
#include "zebra/rt.h"
#include <ifaddrs.h>

View 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))