diff options
| author | [email protected] <[email protected]> | 2012-12-29 08:11:38 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-29 08:11:38 +0000 |
| commit | d573786d522a4c5316210bcef22a417ba40f92c8 (patch) | |
| tree | d81a377d91f8bfe207cbf702f70bc13dbd940b6f /examples/kernel/tc_comm.c | |
| parent | 50d95287cc6e54ac9307a9c24728215607c8fc2f (diff) | |
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
Diffstat (limited to 'examples/kernel/tc_comm.c')
| -rw-r--r-- | examples/kernel/tc_comm.c | 4 |
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)
|
