mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Lib: Add and use ev_new_init()
This commit is contained in:
@@ -420,9 +420,7 @@ static_start(struct proto *P)
|
||||
if (p->igp_table_ip6)
|
||||
rt_lock_table(p->igp_table_ip6);
|
||||
|
||||
p->event = ev_new(p->p.pool);
|
||||
p->event->hook = static_announce_marked;
|
||||
p->event->data = p;
|
||||
p->event = ev_new_init(p->p.pool, static_announce_marked, p);
|
||||
|
||||
BUFFER_INIT(p->marked, p->p.pool, 4);
|
||||
|
||||
|
Reference in New Issue
Block a user