summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_route.c2
-rw-r--r--lib/command_graph.c2
-rw-r--r--nhrpd/nhrp_vty.c1
-rw-r--r--ospf6d/ospf6_route.c2
4 files changed, 3 insertions, 4 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 88b63107e9..b535a4ea7a 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -8308,7 +8308,7 @@ route_vty_out_detail_header (struct vty *vty, struct bgp *bgp,
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;
diff --git a/lib/command_graph.c b/lib/command_graph.c
index 8cfb333575..4254b91d95 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -349,7 +349,7 @@ cmd_merge_nodes (struct graph *oldgraph, struct graph *newgraph,
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);
diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c
index af7fb0a50d..ae5bd6e23e 100644
--- a/nhrpd/nhrp_vty.c
+++ b/nhrpd/nhrp_vty.c
@@ -671,7 +671,6 @@ static void show_ip_nhrp_shortcut(struct nhrp_shortcut *s, void *pctx)
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)))
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index 7b01c69a86..d223651f48 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -43,7 +43,7 @@ unsigned char conf_debug_ospf6_route = 0;
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: