summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authordzzxzz <[email protected]>2011-09-21 03:56:42 +0000
committerdzzxzz <[email protected]>2011-09-21 03:56:42 +0000
commitc0f80bdf9a7fc66776fcb1ab5f94ef6af06fd17f (patch)
treebb688f8017547fe23cb2879b85090f84f8b4f5c1 /src/idle.c
parentfea7d02bfd41a73be2d4fb2c0ecfe2b8628be68b (diff)
cleanup kernel code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1715 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/idle.c b/src/idle.c
index cc03bd499d..b847ff1f60 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -84,7 +84,7 @@ void rt_thread_idle_excute(void)
/* if the thread is module's main thread */
if (module != RT_NULL && module->module_thread == thread)
- {
+ {
/* detach module's main thread */
module->module_thread = RT_NULL;
}
@@ -134,8 +134,8 @@ void rt_thread_idle_excute(void)
if ((module->module_thread == RT_NULL) &&
rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list) )
{
- module->nref--;
- }
+ module->nref --;
+ }
}
/* unload module */
@@ -144,7 +144,7 @@ void rt_thread_idle_excute(void)
}
}
-static void rt_thread_idle_entry(void* parameter)
+static void rt_thread_idle_entry(void *parameter)
{
while (1)
{