aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-17 16:38:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-17 16:38:19 +0100
commit4c252ed720d21dec1ac6cd088e50d65f8d8014fd (patch)
treed6e1d389186ca7e4e9fbb890abc02e7c8cde7753 /src/plugins/chartable.c
parentd111e5e161f9bc3ae388e8e874651d6b5656ba1a (diff)
downloadrspamd-4c252ed720d21dec1ac6cd088e50d65f8d8014fd.tar.gz
rspamd-4c252ed720d21dec1ac6cd088e50d65f8d8014fd.zip
Fix modules initialization.
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index 002a1d05b..f8ad15be9 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -52,7 +52,7 @@ module_t chartable_module = {
};
struct chartable_ctx {
- gint (*filter) (struct rspamd_task * task);
+ struct module_ctx ctx;
const gchar *symbol;
double threshold;
@@ -69,7 +69,6 @@ chartable_module_init (struct rspamd_config *cfg, struct module_ctx **ctx)
{
chartable_module_ctx = g_malloc (sizeof (struct chartable_ctx));
- chartable_module_ctx->filter = chartable_mime_filter;
chartable_module_ctx->chartable_pool = rspamd_mempool_new (
rspamd_mempool_suggest_size ());
@@ -221,10 +220,3 @@ chartable_symbol_callback (struct rspamd_task *task, void *unused)
}
}
-
-static gint
-chartable_mime_filter (struct rspamd_task *task)
-{
- /* XXX: remove it */
- return 0;
-}