aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-08-14 17:33:37 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-08-14 17:33:37 +0100
commit90ad63eaedccc4c0baa0fc0ed9de9fedeca8fc90 (patch)
tree2df45d8e0e1717e3fa0f11bc16f86f7dfe7ab605 /src/libserver
parent5a3f2d9a9831b2e44dbb9f4a6c2d2a917f08dadf (diff)
downloadrspamd-90ad63eaedccc4c0baa0fc0ed9de9fedeca8fc90.tar.gz
rspamd-90ad63eaedccc4c0baa0fc0ed9de9fedeca8fc90.zip
[Minor] Fixed composite callback
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/composites.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/composites.c b/src/libserver/composites.c
index 125e97e6d..83f3a35d4 100644
--- a/src/libserver/composites.c
+++ b/src/libserver/composites.c
@@ -66,7 +66,7 @@ struct symbol_remove_data {
static rspamd_expression_atom_t * rspamd_composite_expr_parse (const gchar *line, gsize len,
rspamd_mempool_t *pool, gpointer ud, GError **err);
-static gdouble rspamd_composite_expr_process (gpointer input, rspamd_expression_atom_t *atom);
+static gdouble rspamd_composite_expr_process (struct rspamd_expr_process_data *process_data, rspamd_expression_atom_t *atom);
static gint rspamd_composite_expr_priority (rspamd_expression_atom_t *atom);
static void rspamd_composite_expr_destroy (rspamd_expression_atom_t *atom);
static void composites_foreach_callback (gpointer key, gpointer value, void *data);
@@ -173,9 +173,9 @@ rspamd_composite_process_single_symbol (struct composites_data *cd,
}
static gdouble
-rspamd_composite_expr_process (gpointer input, rspamd_expression_atom_t *atom)
+rspamd_composite_expr_process (struct rspamd_expr_process_data *process_data, rspamd_expression_atom_t *atom)
{
- struct composites_data *cd = (struct composites_data *)input;
+ struct composites_data *cd = process_data->cd;
const gchar *beg = atom->data, *sym = NULL;
gchar t;
struct symbol_remove_data *rd, *nrd;