diff options
Diffstat (limited to 'tests/lib/test_table.c')
-rw-r--r-- | tests/lib/test_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/test_table.c b/tests/lib/test_table.c index 2b6504062..90d6c76bf 100644 --- a/tests/lib/test_table.c +++ b/tests/lib/test_table.c @@ -478,7 +478,7 @@ static void test_iter_pause(void) const char *prefixes[] = {"1.0.1.0/24", "1.0.1.0/25", "1.0.1.128/25", "1.0.2.0/24", "2.0.0.0/8"}; - num_prefixes = sizeof(prefixes) / sizeof(prefixes[0]); + num_prefixes = array_size(prefixes); printf("\n\nTesting that route_table_iter_pause() works as expected\n"); table = route_table_init(); |