diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-14 18:34:44 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-14 18:34:44 +0000 |
commit | 0bb433da33b405be40504176e934880618307dfd (patch) | |
tree | ab49fa9a2991f29992cdb863d934cd7f4e4e2281 | |
parent | d4f8010847e1a509f46bb038a80be64385687e96 (diff) | |
download | rspamd-0bb433da33b405be40504176e934880618307dfd.tar.gz rspamd-0bb433da33b405be40504176e934880618307dfd.zip |
Remove unused attribute from rspamd_lua_init
-rw-r--r-- | src/libserver/cfg_utils.c | 2 | ||||
-rw-r--r-- | src/lua/lua_common.c | 4 | ||||
-rw-r--r-- | src/lua/lua_common.h | 2 | ||||
-rw-r--r-- | 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; |