The label initializer & nhrpd variable are just to shut up GCC 7,
the other two are actual bugs.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
int local_as = 0;
int first = 1;
int has_valid_label = 0;
- mpls_label_t label;
+ mpls_label_t label = 0;
json_object *json_adv_to = NULL;
p = &rn->p;
if (i == vector_active (old->to) && direction > 0)
{
assert (vector_count (cnew->from) ==
- cmd_nodes_link (cnew, cnew) ? 2 : 1);
+ (cmd_nodes_link (cnew, cnew) ? 2 : 1));
graph_remove_edge (new, cnew);
cmd_reparent_tree (newgraph, oldgraph, cnew);
static void show_ip_opennhrp_cache(struct nhrp_cache *c, void *pctx)
{
struct info_ctx *ctx = pctx;
- struct vty *vty = ctx->vty;
char buf[SU_ADDRSTRLEN];
if (ctx->afi != family2afi(sockunion_family(&c->remote_addr)))
static char *
ospf6_route_table_name (struct ospf6_route_table *table)
{
- static char name[32];
+ static char name[64];
switch (table->scope_type)
{
case OSPF6_SCOPE_TYPE_GLOBAL: