diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 12:15:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 12:15:28 +0100 |
commit | 614767d4fe3a3b98e1c9d9e58cabcfcda2229fa8 (patch) | |
tree | 533fba1c8a4a36764e02641d2a6c40bb38114e38 /src/classifiers | |
parent | e67faf530b5c86de91f476a1d17918d2dd08f466 (diff) | |
download | rspamd-614767d4fe3a3b98e1c9d9e58cabcfcda2229fa8.tar.gz rspamd-614767d4fe3a3b98e1c9d9e58cabcfcda2229fa8.zip |
Refactor function names.
Diffstat (limited to 'src/classifiers')
-rw-r--r-- | src/classifiers/bayes.c | 2 | ||||
-rw-r--r-- | src/classifiers/winnow.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index bd001a8c3..0afd3109c 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -345,7 +345,7 @@ bayes_classify (struct classifier_ctx * ctx, } rspamd_snprintf (sumbuf, 32, "%.2f%%", final_prob * 100.); cur = g_list_prepend (NULL, sumbuf); - insert_result (task, + rspamd_task_insert_result (task, data.statfiles[selected_st].st->symbol, final_prob, cur); diff --git a/src/classifiers/winnow.c b/src/classifiers/winnow.c index 25ff0b37d..4bfe086bf 100644 --- a/src/classifiers/winnow.c +++ b/src/classifiers/winnow.c @@ -316,7 +316,7 @@ winnow_classify (struct classifier_ctx *ctx, sumbuf = rspamd_mempool_alloc (task->task_pool, 32); rspamd_snprintf (sumbuf, 32, "%.2F", max); cur = g_list_prepend (NULL, sumbuf); - insert_result (task, sel->symbol, max, cur); + rspamd_task_insert_result (task, sel->symbol, max, cur); } return TRUE; |