summaryrefslogtreecommitdiff
path: root/nest/locks.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 /nest/locks.c
parent0db7a1d69c80b1089f10a268ceacb059db41ced8 (diff)
Lib: Add and use ev_new_init()
Diffstat (limited to 'nest/locks.c')
-rw-r--r--nest/locks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nest/locks.c b/nest/locks.c
index 86c9ff14..812a6534 100644
--- a/nest/locks.c
+++ b/nest/locks.c
@@ -191,6 +191,5 @@ olock_init(void)
{
DBG("olock: init\n");
init_list(&olock_list);
- olock_event = ev_new(&root_pool);
- olock_event->hook = olock_run_event;
+ olock_event = ev_new_init(&root_pool, olock_run_event, NULL);
}