aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index d1abe6a2b..11ee6b32a 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1523,7 +1523,7 @@ lua_task_create (lua_State * L)
LUA_TRACE_POINT;
struct rspamd_task *task = NULL, **ptask;
struct rspamd_config *cfg = NULL;
- struct event_base *ev_base = NULL;
+ struct ev_loop *ev_base = NULL;
if (lua_type (L, 1) == LUA_TUSERDATA) {
gpointer p;
@@ -1539,7 +1539,7 @@ lua_task_create (lua_State * L)
p = rspamd_lua_check_udata_maybe (L, 2, "rspamd{ev_base}");
if (p) {
- ev_base = *(struct event_base **)p;
+ ev_base = *(struct ev_loop **)p;
}
}
@@ -1610,13 +1610,13 @@ static int
lua_task_get_ev_base (lua_State * L)
{
LUA_TRACE_POINT;
- struct event_base **pbase;
+ struct ev_loop **pbase;
struct rspamd_task *task = lua_check_task (L, 1);
if (task != NULL) {
- pbase = lua_newuserdata (L, sizeof (struct event_base *));
+ pbase = lua_newuserdata (L, sizeof (struct ev_loop *));
rspamd_lua_setclass (L, "rspamd{ev_base}", -1);
- *pbase = task->ev_base;
+ *pbase = task->event_loop;
}
else {
return luaL_error (L, "invalid arguments");