]> source.dussan.org Git - rspamd.git/commitdiff
Initialize missing fields.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Jan 2015 16:19:35 +0000 (16:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Jan 2015 16:19:35 +0000 (16:19 +0000)
src/libstat/backends/backends.h
src/libstat/stat_config.c

index 9462b21cee81925010cd2587c78ff60eb5ec6e0c..6a1557a8d779ecde1df5981c13a5dd162c52c432 100644 (file)
@@ -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;
 };
index cd25ad0c51488771d948ad1d9074196708832e09..fe81a0a147cf053e7c4751a1075ea02bf92e9d95 100644 (file)
@@ -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
        }
 };