summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score
diff options
context:
space:
mode:
authorAndreas Heinig <andreas.heinig@cs.tu-dortmund.de>2012-12-18 11:27:49 -0500
committerGedare Bloom <gedare@rtems.org>2012-12-18 11:27:49 -0500
commit7b5513f04fa4aee88936cd6cd3c3fc5e0fc4e8f2 (patch)
treee5e191ac22e8558c36a54173a7a1efda66c6b64b /cpukit/score/inline/rtems/score
parentbsps/arm: Move promiscuous mode setting (diff)
downloadrtems-7b5513f04fa4aee88936cd6cd3c3fc5e0fc4e8f2.tar.bz2
PR2083 Wrong return value in _RBTree_Has_only_one_node
The function _RBTree_Has_only_one_node shall return a boolean value, but returns NULL. NULL, however, is defined as: (void *)0. Hence it does not match the scalar bool type. Return false instead.
Diffstat (limited to 'cpukit/score/inline/rtems/score')
-rw-r--r--cpukit/score/inline/rtems/score/rbtree.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/inline/rtems/score/rbtree.inl b/cpukit/score/inline/rtems/score/rbtree.inl
index c5187a02ae..439b40a0ba 100644
--- a/cpukit/score/inline/rtems/score/rbtree.inl
+++ b/cpukit/score/inline/rtems/score/rbtree.inl
@@ -221,7 +221,7 @@ RTEMS_INLINE_ROUTINE bool _RBTree_Has_only_one_node(
const RBTree_Control *the_rbtree
)
{
- if(!the_rbtree) return NULL; /* TODO: expected behavior? */
+ if(!the_rbtree) return false; /* TODO: expected behavior? */
return (the_rbtree->root->child[RBT_LEFT] == NULL && the_rbtree->root->child[RBT_RIGHT] == NULL);
}