diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-06 09:19:57 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-06 09:19:57 +0100 |
commit | 4c4c9f45c48992c5969923fa3bd7383f794fdc8a (patch) | |
tree | fe70699bf21760a53d226a05f20c37a5c8d665e2 /src/rspamadm/fuzzy_convert.c | |
parent | 49fb6ed4d68e7691b5219c78fd0837ca4e2f7b94 (diff) | |
download | rspamd-4c4c9f45c48992c5969923fa3bd7383f794fdc8a.tar.gz rspamd-4c4c9f45c48992c5969923fa3bd7383f794fdc8a.zip |
[Minor] Reworked other parts of rspamadm to handle asynchronous events
Diffstat (limited to 'src/rspamadm/fuzzy_convert.c')
-rw-r--r-- | src/rspamadm/fuzzy_convert.c | 7 |
1 files changed, 1 insertions, 6 deletions
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", |