X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_func_reentrancy.c;h=596d395eb4d86ba7745eb8bf07d619493671f121;hb=71bdd8a1785d25f91de7908ff915e4db7871eb2b;hp=99ad902a24886ed168fff27f4b49584717066cd6;hpb=55499896d91a4fb01e743b71df639dc1c18314d8;p=dpdk.git diff --git a/app/test/test_func_reentrancy.c b/app/test/test_func_reentrancy.c index 99ad902a24..596d395eb4 100644 --- a/app/test/test_func_reentrancy.c +++ b/app/test/test_func_reentrancy.c @@ -480,7 +480,7 @@ test_func_reentrancy(void) else if (rte_lcore_count() > MAX_LCORES) printf("Too many lcores, some cores will be disabled\n"); - for (case_id = 0; case_id < sizeof(test_cases)/sizeof(struct test_case); case_id ++) { + for (case_id = 0; case_id < RTE_DIM(test_cases); case_id++) { pt_case = &test_cases[case_id]; if (pt_case->func == NULL) continue;