diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-17 15:46:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-17 15:46:20 +0100 |
commit | 957e21258d23679a0b4b9f46a720750ff86d8cf8 (patch) | |
tree | b88a710e28eb954ab54ab4ccf7491ca1f01a3ef9 /src/libmime | |
parent | 29a3b94f4dc310b1f8b77ec982b9062f80192424 (diff) | |
download | rspamd-957e21258d23679a0b4b9f46a720750ff86d8cf8.tar.gz rspamd-957e21258d23679a0b4b9f46a720750ff86d8cf8.zip |
[Rework] Rework expression API
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/mime_expressions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index d45dafe5c..4a0071f28 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -87,7 +87,7 @@ static gboolean rspamd_has_flag_expr (struct rspamd_task *task, static rspamd_expression_atom_t * rspamd_mime_expr_parse (const gchar *line, gsize len, rspamd_mempool_t *pool, gpointer ud, GError **err); -static gdouble rspamd_mime_expr_process (struct rspamd_expr_process_data *process_data, rspamd_expression_atom_t *atom); +static gdouble rspamd_mime_expr_process (void *ud, rspamd_expression_atom_t *atom); static gint rspamd_mime_expr_priority (rspamd_expression_atom_t *atom); static void rspamd_mime_expr_destroy (rspamd_expression_atom_t *atom); @@ -1070,9 +1070,9 @@ rspamd_mime_expr_process_function (struct rspamd_function_atom * func, } static gdouble -rspamd_mime_expr_process (struct rspamd_expr_process_data *process_data, rspamd_expression_atom_t *atom) +rspamd_mime_expr_process (void *ud, rspamd_expression_atom_t *atom) { - struct rspamd_task *task = process_data->task; + struct rspamd_task *task = (struct rspamd_task *)ud; struct rspamd_mime_atom *mime_atom; lua_State *L; gdouble ret = 0; |