summaryrefslogtreecommitdiff
path: root/proto/babel/babel.c
diff options
context:
space:
mode:
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;