summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_keepalives.c2
-rw-r--r--bgpd/bgp_vty.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_keepalives.c b/bgpd/bgp_keepalives.c
index 4de59da104..abe9739c98 100644
--- a/bgpd/bgp_keepalives.c
+++ b/bgpd/bgp_keepalives.c
@@ -155,7 +155,7 @@ void bgp_keepalives_init()
pthread_condattr_destroy(&attrs);
// initialize peer hashtable
- peerhash = hash_create_size(2048, peer_hash_key, peer_hash_cmp);
+ peerhash = hash_create_size(2048, peer_hash_key, peer_hash_cmp, NULL);
}
static void bgp_keepalives_finish(void *arg)
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 6f1620faca..a673810738 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -1367,7 +1367,7 @@ void bgp_config_write_wpkt_quanta(struct vty *vty, struct bgp *bgp)
uint32_t quanta =
atomic_load_explicit(&bgp->wpkt_quanta, memory_order_relaxed);
if (quanta != BGP_WRITE_PACKET_MAX)
- vty_out(vty, " write-quanta %d%s", quanta, VTY_NEWLINE);
+ vty_out(vty, " write-quanta %d\n", quanta);
}
void bgp_config_write_rpkt_quanta(struct vty *vty, struct bgp *bgp)
@@ -1375,7 +1375,7 @@ void bgp_config_write_rpkt_quanta(struct vty *vty, struct bgp *bgp)
uint32_t quanta =
atomic_load_explicit(&bgp->rpkt_quanta, memory_order_relaxed);
if (quanta != BGP_READ_PACKET_MAX)
- vty_out(vty, " read-quanta %d%s", quanta, VTY_NEWLINE);
+ vty_out(vty, " read-quanta %d\n", quanta);
}
/* Packet quanta configuration */