From 152456fe234b0db1dbe6d5f49cac4158c8c64158 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Fri, 30 Jun 2017 18:04:32 +0000 Subject: [PATCH] bgpd: rebase onto master Signed-off-by: Quentin Young --- bgpd/bgp_keepalives.c | 2 +- bgpd/bgp_vty.c | 4 ++-- 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 */ -- 2.39.5