From 0bb433da33b405be40504176e934880618307dfd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Dec 2015 18:34:44 +0000 Subject: Remove unused attribute from rspamd_lua_init --- src/libserver/cfg_utils.c | 2 +- src/lua/lua_common.c | 4 ++-- src/lua/lua_common.h | 2 +- test/rspamd_lua_test.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 11be02879..b72dfa70d 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -195,7 +195,7 @@ rspamd_config_new (void) cfg->min_word_len = DEFAULT_MIN_WORD; cfg->max_word_len = DEFAULT_MAX_WORD; - cfg->lua_state = rspamd_lua_init (cfg); + cfg->lua_state = rspamd_lua_init (); cfg->cache = rspamd_symbols_cache_new (cfg); cfg->ups_ctx = rspamd_upstreams_library_init (); cfg->re_cache = rspamd_re_cache_new (); 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 diff --git a/test/rspamd_lua_test.c b/test/rspamd_lua_test.c index 8b1b09383..8297657c4 100644 --- a/test/rspamd_lua_test.c +++ b/test/rspamd_lua_test.c @@ -63,7 +63,7 @@ traceback (lua_State *L) void rspamd_lua_test_func (void) { - lua_State *L = rspamd_lua_init (NULL); + lua_State *L = rspamd_lua_init (); gchar *rp, rp_buf[PATH_MAX], path_buf[PATH_MAX], *tmp, *dir, *pattern; const gchar *old_path; glob_t globbuf; -- cgit v1.2.3