summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/kernel/tc_comm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/kernel/tc_comm.c b/examples/kernel/tc_comm.c
index 008be9b746..1ec48f5398 100644
--- a/examples/kernel/tc_comm.c
+++ b/examples/kernel/tc_comm.c
@@ -27,7 +27,7 @@ void tc_thread_entry(void* parameter)
while (_tc_stat & TC_STAT_RUNNING)
{
- for (index = _syscall_table_begin; index < _syscall_table_end; index ++)
+ for (index = _syscall_table_begin; index < _syscall_table_end; FINSH_NEXT_SYSCALL(index))
{
/* search testcase */
if (rt_strstr(index->name, _tc_prefix) == index->name)
@@ -158,7 +158,7 @@ void list_tc()
struct finsh_syscall* index;
rt_kprintf("TestCases List:\n");
- for (index = _syscall_table_begin; index < _syscall_table_end; index ++)
+ for (index = _syscall_table_begin; index < _syscall_table_end; FINSH_NEXT_SYSCALL(index))
{
/* search testcase */
if (rt_strstr(index->name, "_tc_") == index->name)