aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libstat/backends/backends.h2
-rw-r--r--src/libstat/stat_config.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libstat/backends/backends.h b/src/libstat/backends/backends.h
index 9462b21ce..6a1557a8d 100644
--- a/src/libstat/backends/backends.h
+++ b/src/libstat/backends/backends.h
@@ -44,7 +44,7 @@ struct rspamd_stat_backend {
gpointer (*init)(struct rspamd_stat_ctx *ctx, struct rspamd_config *cfg);
gpointer (*runtime)(struct rspamd_statfile_config *stcf, gpointer ctx);
gboolean (*process_token)(struct token_node_s *tok,
- struct rspamd_token_result *res, gpointer *ctx);
+ struct rspamd_token_result *res, gpointer ctx);
gulong (*total_learns)(struct rspamd_statfile_runtime *runtime, gpointer ctx);
gpointer ctx;
};
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c
index cd25ad0c5..fe81a0a14 100644
--- a/src/libstat/stat_config.c
+++ b/src/libstat/stat_config.c
@@ -48,6 +48,8 @@ struct rspamd_stat_backend stat_backends[] = {
{
.name = RSPAMD_DEFAULT_BACKEND,
.init = rspamd_mmaped_file_init,
+ .process_token = rspamd_mmaped_file_process_token,
+ .total_learns = rspamd_mmaped_file_total_learns
}
};