summaryrefslogtreecommitdiff
path: root/proto/babel/babel.c
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/babel/babel.c
parent0db7a1d69c80b1089f10a268ceacb059db41ced8 (diff)
Lib: Add and use ev_new_init()
Diffstat (limited to 'proto/babel/babel.c')
-rw-r--r--proto/babel/babel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index afa482bb..12c9a474 100644
--- a/proto/babel/babel.c
+++ b/proto/babel/babel.c
@@ -1592,9 +1592,7 @@ babel_add_iface(struct babel_proto *p, struct iface *new, struct babel_iface_con
ifa->timer = tm_new_init(ifa->pool, babel_iface_timer, ifa, 0, 0);
init_list(&ifa->msg_queue);
- ifa->send_event = ev_new(ifa->pool);
- ifa->send_event->hook = babel_send_queue;
- ifa->send_event->data = ifa;
+ ifa->send_event = ev_new_init(ifa->pool, babel_send_queue, ifa);
struct object_lock *lock = olock_new(ifa->pool);
lock->type = OBJLOCK_UDP;