git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
app: use common macro RTE_DIM
[dpdk.git]
/
app
/
test
/
test.c
diff --git
a/app/test/test.c
b/app/test/test.c
index
cd7aaf6
..
7845350
100644
(file)
--- a/
app/test/test.c
+++ b/
app/test/test.c
@@
-74,7
+74,7
@@
do_recursive_call(void)
if (recursive_call == NULL)
return -1;
- for (i = 0; i <
sizeof(actions)/sizeof(actions[0]
); i++) {
+ for (i = 0; i <
RTE_DIM(actions
); i++) {
if (strcmp(actions[i].env_var, recursive_call) == 0)
return (actions[i].action_fn)();
}