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/object.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/object.c') diff --git a/src/object.c b/src/object.c index f94ba5d407..7dcbf5996e 100644 --- a/src/object.c +++ b/src/object.c @@ -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; } /** -- cgit v1.3.1