summaryrefslogtreecommitdiff
path: root/nest/a-path_test.c
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 /nest/a-path_test.c
parentb880e3ffaea12c3231975157bc51b5f90a2f2433 (diff)
Linpool: default allocation size
Diffstat (limited to 'nest/a-path_test.c')
-rw-r--r--nest/a-path_test.c8
1 files changed, 4 insertions, 4 deletions
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;