From 961671c0f51693aff34bf3adf5319b35275a86d3 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Mon, 1 Oct 2018 15:55:23 +0200 Subject: Lib: Add and use ev_new_init() --- proto/babel/babel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'proto/babel') 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; -- cgit v1.2.3