diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-26 16:19:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-26 16:19:35 +0000 |
commit | 353113f99bd8c1bbb4db60bbebcef1e5d4af1d81 (patch) | |
tree | 4b8db11c2688f818212e85be645a0ef8ecb61cbf /src | |
parent | 9fe6930420bbe6bfa84d3571804661f734cd203f (diff) | |
download | rspamd-353113f99bd8c1bbb4db60bbebcef1e5d4af1d81.tar.gz rspamd-353113f99bd8c1bbb4db60bbebcef1e5d4af1d81.zip |
Initialize missing fields.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstat/backends/backends.h | 2 | ||||
-rw-r--r-- | src/libstat/stat_config.c | 2 |
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 } }; |