summaryrefslogtreecommitdiff
path: root/proto/static
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-01 15:55:23 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-01 15:55:23 +0200
commit961671c0f51693aff34bf3adf5319b35275a86d3 (patch)
tree1eae258f41d0dc67abdc45da6bc16f253a4f23dc /proto/static
parent0db7a1d69c80b1089f10a268ceacb059db41ced8 (diff)
Lib: Add and use ev_new_init()
Diffstat (limited to 'proto/static')
-rw-r--r--proto/static/static.c4
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);