aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_expression_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rspamd_expression_test.c')
-rw-r--r--test/rspamd_expression_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rspamd_expression_test.c b/test/rspamd_expression_test.c
index 7cf4bb123..2ce9e4f87 100644
--- a/test/rspamd_expression_test.c
+++ b/test/rspamd_expression_test.c
@@ -16,21 +16,21 @@ char *test_expressions[] = {
void
rspamd_expression_test_func ()
{
- memory_pool_t *pool;
+ rspamd_mempool_t *pool;
struct expression *cur;
struct expression_argument *arg;
char **line, *outstr;
int r, s;
GList *cur_arg;
- pool = memory_pool_new (1024);
+ pool = rspamd_mempool_new (1024);
line = test_expressions;
while (*line) {
r = 0;
cur = parse_expression (pool, *line);
s = strlen (*line) * 4;
- outstr = memory_pool_alloc (pool, s);
+ outstr = rspamd_mempool_alloc (pool, s);
while (cur) {
if (cur->type == EXPR_REGEXP) {
r += rspamd_snprintf (outstr + r, s - r, "OP:%s ", (char *)cur->content.operand);
@@ -60,5 +60,5 @@ rspamd_expression_test_func ()
line ++;
}
- memory_pool_delete (pool);
+ rspamd_mempool_delete (pool);
}