summaryrefslogtreecommitdiffstats
path: root/test/rspamd_statfile_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rspamd_statfile_test.c')
-rw-r--r--test/rspamd_statfile_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rspamd_statfile_test.c b/test/rspamd_statfile_test.c
index f8e8a5294..870a827fa 100644
--- a/test/rspamd_statfile_test.c
+++ b/test/rspamd_statfile_test.c
@@ -10,12 +10,12 @@ void
rspamd_statfile_test_func ()
{
statfile_pool_t *pool;
- memory_pool_t *p;
+ rspamd_mempool_t *p;
stat_file_t *st;
uint32_t random_hashes[HASHES_NUM], i, v;
time_t now;
- p = memory_pool_new (memory_pool_get_size ());
+ p = rspamd_mempool_new (rspamd_mempool_suggest_size ());
umask (S_IWGRP | S_IWOTH);
pool = statfile_pool_new (p, 10 * 1024 * 1024, TRUE);