From 05d47bd53e71480f1b276bd895f1c25088201e48 Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Tue, 16 May 2017 14:31:16 +0200 Subject: Linpool: default allocation size --- nest/a-path_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nest/a-path_test.c') diff --git a/nest/a-path_test.c b/nest/a-path_test.c index fbf0f892..5e122396 100644 --- a/nest/a-path_test.c +++ b/nest/a-path_test.c @@ -32,7 +32,7 @@ t_as_path_match(void) struct adata *as_path = &empty_as_path; u32 first_prepended, last_prepended; first_prepended = last_prepended = 0; - struct linpool *lp = lp_new(&root_pool, 0); + struct linpool *lp = lp_new_default(&root_pool); struct f_path_mask mask[AS_PATH_LENGTH] = {}; int i; @@ -76,7 +76,7 @@ t_path_format(void) struct adata empty_as_path = {}; struct adata *as_path = &empty_as_path; - struct linpool *lp = lp_new(&root_pool, 0); + struct linpool *lp = lp_new_default(&root_pool); uint i; for (i = 4294967285; i <= 4294967294; i++) @@ -122,7 +122,7 @@ t_path_include(void) struct adata empty_as_path = {}; struct adata *as_path = &empty_as_path; - struct linpool *lp = lp_new(&root_pool, 0); + struct linpool *lp = lp_new_default(&root_pool); u32 as_nums[AS_PATH_LENGTH] = {}; int i; @@ -167,7 +167,7 @@ t_as_path_converting(void) struct adata empty_as_path = {}; struct adata *as_path = &empty_as_path; - struct linpool *lp = lp_new(&root_pool, 0); + struct linpool *lp = lp_new_default(&root_pool); #define AS_PATH_LENGTH_FOR_CONVERTING_TEST 10 int i; -- cgit v1.2.3