From d573786d522a4c5316210bcef22a417ba40f92c8 Mon Sep 17 00:00:00 2001 From: "rogerz.zhang@gmail.com" Date: Sat, 29 Dec 2012 08:11:38 +0000 Subject: fix memory access error in list_tc() under bsp/simulator git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2550 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/kernel/tc_comm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/kernel') 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) -- cgit v1.3.1