From: Vsevolod Stakhov Date: Mon, 26 Jan 2015 16:19:35 +0000 (+0000) Subject: Initialize missing fields. X-Git-Tag: 0.9.0~829 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=353113f99bd8c1bbb4db60bbebcef1e5d4af1d81;p=rspamd.git Initialize missing fields. --- 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 } };