diff options
Diffstat (limited to 'proto/static/static.c')
-rw-r--r-- | proto/static/static.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index 40096c16..75a74ad0 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -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); |