summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 036b34c4..4998e292 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1682,9 +1682,7 @@ rt_setup(pool *p, rtable *t, struct rtable_config *cf)
fib_init(&t->fib, p, t->addr_type, sizeof(net), OFFSETOF(net, n), 0, NULL);
init_list(&t->channels);
- t->rt_event = ev_new(p);
- t->rt_event->hook = rt_event;
- t->rt_event->data = t;
+ t->rt_event = ev_new_init(p, rt_event, t);
t->gc_time = current_time();
}