From 4c4c9f45c48992c5969923fa3bd7383f794fdc8a Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Thu, 6 Sep 2018 09:19:57 +0100 Subject: [Minor] Reworked other parts of rspamadm to handle asynchronous events --- src/rspamadm/fuzzy_convert.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/rspamadm/fuzzy_convert.c') diff --git a/src/rspamadm/fuzzy_convert.c b/src/rspamadm/fuzzy_convert.c index 1c5620730..c59200bc7 100644 --- a/src/rspamadm/fuzzy_convert.c +++ b/src/rspamadm/fuzzy_convert.c @@ -78,7 +78,6 @@ rspamadm_fuzzyconvert (gint argc, gchar **argv, const struct rspamadm_command *c { GOptionContext *context; GError *error = NULL; - lua_State *L; ucl_object_t *obj; context = g_option_context_new ( @@ -110,9 +109,6 @@ rspamadm_fuzzyconvert (gint argc, gchar **argv, const struct rspamadm_command *c exit (1); } - L = rspamd_lua_init (); - rspamd_lua_set_path (L, NULL, ucl_vars); - obj = ucl_object_typed_new (UCL_OBJECT); ucl_object_insert_key (obj, ucl_object_fromstring (source_db), "source_db", 0, false); @@ -131,8 +127,7 @@ rspamadm_fuzzyconvert (gint argc, gchar **argv, const struct rspamadm_command *c "redis_db", 0, false); } - rspamadm_execute_lua_ucl_subr (L, - argc, + rspamadm_execute_lua_ucl_subr (argc, argv, obj, "fuzzy_convert", -- cgit v1.2.3