diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
commit | ad837700b86153be3587672124ee663c964f0f15 (patch) | |
tree | 7ec6e8fbe539a169d501a3d1767644b68fab2dab /src/plugins/chartable.c | |
parent | baeb17562f47dc31610c0f65079c45a7e6ad44bb (diff) | |
download | rspamd-ad837700b86153be3587672124ee663c964f0f15.tar.gz rspamd-ad837700b86153be3587672124ee663c964f0f15.zip |
Refactor memory pool naming.
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r-- | src/plugins/chartable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 87f4c728e..fc9ff3f49 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -58,7 +58,7 @@ struct chartable_ctx { const gchar *symbol; double threshold; - memory_pool_t *chartable_pool; + rspamd_mempool_t *chartable_pool; }; static struct chartable_ctx *chartable_module_ctx = NULL; @@ -72,7 +72,7 @@ chartable_module_init (struct config_file *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 = memory_pool_new (memory_pool_get_size ()); + chartable_module_ctx->chartable_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); *ctx = (struct module_ctx *)chartable_module_ctx; @@ -110,8 +110,8 @@ chartable_module_config (struct config_file *cfg) gint chartable_module_reconfig (struct config_file *cfg) { - memory_pool_delete (chartable_module_ctx->chartable_pool); - chartable_module_ctx->chartable_pool = memory_pool_new (1024); + rspamd_mempool_delete (chartable_module_ctx->chartable_pool); + chartable_module_ctx->chartable_pool = rspamd_mempool_new (1024); return chartable_module_config (cfg); } |