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
This commit is contained in:
dzzxzz@gmail.com
2012-06-02 09:20:19 +00:00
parent 907bb8c7fd
commit f19d8aa591
5 changed files with 15 additions and 15 deletions
+4 -4
View File
@@ -356,17 +356,17 @@ void rt_object_delete(rt_object_t object)
*
* @param object the specified object to be judged.
*
* @return RT_EOK if a system object, RT_ERROR for others.
* @return RT_TRUE if a system object, RT_FALSE for others.
*/
rt_err_t rt_object_is_systemobject(rt_object_t object)
rt_bool_t rt_object_is_systemobject(rt_object_t object)
{
/* object check */
RT_ASSERT(object != RT_NULL);
if (object->type & RT_Object_Class_Static)
return RT_EOK;
return RT_TRUE;
return -RT_ERROR;
return RT_FALSE;
}
/**