summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.c4
-rw-r--r--src/lua/lua_common.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 63e694462..0cbec0408 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -210,7 +210,7 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg)
}
lua_State *
-rspamd_lua_init (struct rspamd_config *cfg)
+rspamd_lua_init ()
{
lua_State *L;
@@ -262,7 +262,7 @@ rspamd_init_lua_locked (struct rspamd_config *cfg)
struct lua_locked_state *new;
new = g_slice_alloc (sizeof (struct lua_locked_state));
- new->L = rspamd_lua_init (cfg);
+ new->L = rspamd_lua_init ();
new->m = rspamd_mutex_new ();
return new;
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index 609838c13..f51aee731 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -126,7 +126,7 @@ gpointer rspamd_lua_check_class (lua_State *L, gint index, const gchar *name);
/**
* Initialize lua and bindings
*/
-lua_State * rspamd_lua_init (struct rspamd_config *cfg);
+lua_State *rspamd_lua_init (void);
/**
* Load and initialize lua plugins