diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-10-01 15:55:23 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-10-01 15:55:23 +0200 |
commit | 961671c0f51693aff34bf3adf5319b35275a86d3 (patch) | |
tree | 1eae258f41d0dc67abdc45da6bc16f253a4f23dc /nest/rt-table.c | |
parent | 0db7a1d69c80b1089f10a268ceacb059db41ced8 (diff) |
Lib: Add and use ev_new_init()
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 4 |
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(); } |