From f19d8aa591a4f92054d7fd1af063483f07175a64 Mon Sep 17 00:00:00 2001 From: "dzzxzz@gmail.com" Date: Sat, 2 Jun 2012 09:20:19 +0000 Subject: change the return type of function rt_object_is_systemobject() using rt_bool_t instead of rt_err_t git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2150 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/module.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/module.c') diff --git a/src/module.c b/src/module.c index 71929b4462..ab1095a63c 100644 --- a/src/module.c +++ b/src/module.c @@ -919,7 +919,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_thread_detach((rt_thread_t)object); @@ -937,7 +937,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_sem_detach((rt_sem_t)object); @@ -956,7 +956,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mutex_detach((rt_mutex_t)object); @@ -975,7 +975,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_event_detach((rt_event_t)object); @@ -994,7 +994,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mb_detach((rt_mailbox_t)object); @@ -1013,7 +1013,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mq_detach((rt_mq_t)object); @@ -1032,7 +1032,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mp_detach((rt_mp_t)object); @@ -1060,7 +1060,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_timer_detach((rt_timer_t)object); -- cgit v1.3.1