diff options
| author | [email protected] <[email protected]> | 2012-06-02 09:20:19 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-06-02 09:20:19 +0000 |
| commit | f19d8aa591a4f92054d7fd1af063483f07175a64 (patch) | |
| tree | 9ee803b15bff4a415b995aae70bdab97557e4757 /src/module.c | |
| parent | 907bb8c7fde7da259f5b817af87a79c42b8932d0 (diff) | |
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
Diffstat (limited to 'src/module.c')
| -rw-r--r-- | src/module.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); |
