1
0
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:
Ondrej Zajicek (work)
2018-10-01 15:55:23 +02:00
parent 0db7a1d69c
commit 961671c0f5
8 changed files with 18 additions and 27 deletions

View File

@@ -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);