summaryrefslogtreecommitdiffstats
path: root/src/libstat/learn_cache
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-10 23:39:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-10 23:39:46 +0000
commitdd1af5b84e7bb401dbe9af004da9f4b49ed97b23 (patch)
tree289ec424f7e0add040971ccee52611bf1fb65697 /src/libstat/learn_cache
parent8bcc03ac88d6f99058bd1a6660f30cb535cf1515 (diff)
downloadrspamd-dd1af5b84e7bb401dbe9af004da9f4b49ed97b23.tar.gz
rspamd-dd1af5b84e7bb401dbe9af004da9f4b49ed97b23.zip
Fix processing of caches
Diffstat (limited to 'src/libstat/learn_cache')
-rw-r--r--src/libstat/learn_cache/sqlite3_cache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c
index 6e040595d..4d97e3084 100644
--- a/src/libstat/learn_cache/sqlite3_cache.c
+++ b/src/libstat/learn_cache/sqlite3_cache.c
@@ -179,7 +179,9 @@ rspamd_stat_cache_sqlite3_runtime (struct rspamd_task *task,
gint
rspamd_stat_cache_sqlite3_check (struct rspamd_task *task,
- gboolean is_spam, gpointer c)
+ gboolean is_spam,
+ gpointer runtime,
+ gpointer c)
{
struct rspamd_stat_sqlite3_ctx *ctx = (struct rspamd_stat_sqlite3_ctx *)c;
struct mime_text_part *part;
@@ -240,7 +242,9 @@ rspamd_stat_cache_sqlite3_check (struct rspamd_task *task,
gint
rspamd_stat_cache_sqlite3_learn (struct rspamd_task *task,
- gboolean is_spam, gpointer c)
+ gboolean is_spam,
+ gpointer runtime,
+ gpointer c)
{
struct rspamd_stat_sqlite3_ctx *ctx = (struct rspamd_stat_sqlite3_ctx *)c;
gboolean unlearn = !!(task->flags & RSPAMD_TASK_FLAG_UNLEARN);