summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-05-16 14:31:16 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2017-05-16 15:34:57 +0200
commit05d47bd53e71480f1b276bd895f1c25088201e48 (patch)
tree6d9c8169ed695d17c90972ae6dd163c45a3d82b1 /filter
parentb880e3ffaea12c3231975157bc51b5f90a2f2433 (diff)
Linpool: default allocation size
Diffstat (limited to 'filter')
-rw-r--r--filter/filter_test.c2
-rw-r--r--filter/tree_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter_test.c b/filter/filter_test.c
index 82efae0b..be7fd521 100644
--- a/filter/filter_test.c
+++ b/filter/filter_test.c
@@ -43,7 +43,7 @@ run_function(const void *parsed_fn_def)
/* XXX: const -> non-const */
struct f_inst *f = (struct f_inst *) parsed_fn_def;
- linpool *tmp = lp_new(&root_pool, 4096);
+ linpool *tmp = lp_new_default(&root_pool);
struct f_val res = f_eval(f, tmp);
rfree(tmp);
diff --git a/filter/tree_test.c b/filter/tree_test.c
index e224a559..5b22a9fe 100644
--- a/filter/tree_test.c
+++ b/filter/tree_test.c
@@ -20,7 +20,7 @@ start_conf_env(void)
bt_bird_init();
pool *p = rp_new(&root_pool, "helper_pool");
- linpool *l = lp_new(p, 4080);
+ linpool *l = lp_new_default(p);
cfg_mem = l;
}