aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.c
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-08-13 12:06:30 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-08-13 12:06:30 +0100
commita9bc3d63a38ab46217303b09f8b03d0215c2f5ea (patch)
treede01b01d314e914e8f949145ae6931c59396913c /src/libmime/mime_expressions.c
parentff3053a983825f2a6c1dc8799f6ec9b337eed224 (diff)
downloadrspamd-a9bc3d63a38ab46217303b09f8b03d0215c2f5ea.tar.gz
rspamd-a9bc3d63a38ab46217303b09f8b03d0215c2f5ea.zip
[Minor] Use struct to pass parameters to process_atom() functions
Diffstat (limited to 'src/libmime/mime_expressions.c')
-rw-r--r--src/libmime/mime_expressions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index f9bfdc1bf..518b9a390 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -83,7 +83,7 @@ static gboolean rspamd_is_empty_body (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 (gpointer input, rspamd_expression_atom_t *atom);
+static gdouble rspamd_mime_expr_process (struct rspamd_expr_process_data *process_data, 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);
@@ -913,9 +913,9 @@ rspamd_mime_expr_process_function (struct rspamd_function_atom * func,
}
static gdouble
-rspamd_mime_expr_process (gpointer input, rspamd_expression_atom_t *atom)
+rspamd_mime_expr_process (struct rspamd_expr_process_data *process_data, rspamd_expression_atom_t *atom)
{
- struct rspamd_task *task = input;
+ struct rspamd_task *task = process_data->task;
struct rspamd_mime_atom *mime_atom;
lua_State *L;
gdouble ret = 0;