summaryrefslogtreecommitdiff
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 095f0fce6f..9d76b3d58b 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -7588,7 +7588,7 @@ bgp_config_write (struct vty *vty)
}
void
-bgp_master_init (void)
+bgp_master_init (struct thread_master *master)
{
qobj_init ();
@@ -7598,7 +7598,7 @@ bgp_master_init (void)
bm->bgp = list_new ();
bm->listen_sockets = list_new ();
bm->port = BGP_PORT_DEFAULT;
- bm->master = thread_master_create ();
+ bm->master = master;
bm->start_time = bgp_clock ();
bm->t_rmap_update = NULL;
bm->rmap_update_timer = RMAP_DEFAULT_UPDATE_TIMER;