aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-17 17:15:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-17 17:15:16 +0100
commitdf48f709f804739d1b084174c46af04b10d2fede (patch)
tree2bb3270a4db81104bfd3c8abf9b19381e5d926b4 /src/main.c
parentac1dfb0beccf74a9f3ec82dfc257ea326532370d (diff)
downloadrspamd-df48f709f804739d1b084174c46af04b10d2fede.tar.gz
rspamd-df48f709f804739d1b084174c46af04b10d2fede.zip
Rework lua function names to avoid ambiguity.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 6e9f75e7a..77143d1f0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -406,7 +406,7 @@ reread_config (struct rspamd_main *rspamd)
rspamd->cfg->cfg_name);
/* Save some variables */
tmp_cfg->cfg_name = cfg_file;
- tmp_cfg->lua_state = init_lua (tmp_cfg);
+ tmp_cfg->lua_state = rspamd_lua_init (tmp_cfg);
rspamd_mempool_add_destructor (tmp_cfg->cfg_pool,
(rspamd_mempool_destruct_t)lua_close, tmp_cfg->lua_state);
@@ -445,7 +445,7 @@ reread_config (struct rspamd_main *rspamd)
}
l = g_list_next (l);
}
- init_lua_filters (rspamd->cfg);
+ rspamd_init_lua_filters (rspamd->cfg);
init_cfg_cache (rspamd->cfg);
msg_info ("config rereaded successfully");
}
@@ -1207,7 +1207,7 @@ main (gint argc, gchar **argv, gchar **env)
g_log_set_default_handler (rspamd_glib_log_function, rspamd_main->logger);
detect_priv (rspamd_main);
- rspamd_main->cfg->lua_state = init_lua (rspamd_main->cfg);
+ rspamd_main->cfg->lua_state = rspamd_lua_init (rspamd_main->cfg);
rspamd_mempool_add_destructor (rspamd_main->cfg->cfg_pool,
(rspamd_mempool_destruct_t)lua_close, rspamd_main->cfg->lua_state);
@@ -1264,7 +1264,7 @@ main (gint argc, gchar **argv, gchar **env)
/* Init events to test modules */
event_init ();
res = TRUE;
- if (!init_lua_filters (rspamd_main->cfg)) {
+ if (!rspamd_init_lua_filters (rspamd_main->cfg)) {
res = FALSE;
}
/* Perform modules configuring */
@@ -1337,7 +1337,7 @@ main (gint argc, gchar **argv, gchar **env)
g_mime_init (0);
/* Init lua filters */
- if (!init_lua_filters (rspamd_main->cfg)) {
+ if (!rspamd_init_lua_filters (rspamd_main->cfg)) {
msg_err ("error loading lua plugins");
exit (EXIT_FAILURE);
}