From 852d53f7a7a5d93e23a3a51ed3b878f8a551405c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 4 Dec 2006 14:31:32 +0000 Subject: =?UTF-8?q?2006-12-04=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * score/inline/rtems/score/chain.inl: Add const qualifiers (works around 651 aliasing bugs). --- cpukit/score/inline/rtems/score/chain.inl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cpukit/score/inline') diff --git a/cpukit/score/inline/rtems/score/chain.inl b/cpukit/score/inline/rtems/score/chain.inl index d394ec93e1..c309c739e2 100644 --- a/cpukit/score/inline/rtems/score/chain.inl +++ b/cpukit/score/inline/rtems/score/chain.inl @@ -71,7 +71,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_null( * @return This method returns TRUE if the_node is NULL and FALSE otherwise. */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_null_node( - Chain_Node *the_node + const Chain_Node *the_node ) { return (the_node == NULL); @@ -136,7 +136,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( * a chain and FALSE otherwise. */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_first( - Chain_Node *the_node + const Chain_Node *the_node ) { return (the_node->previous == NULL); @@ -153,7 +153,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_first( * a chain and FALSE otherwise. */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_last( - Chain_Node *the_node + const Chain_Node *the_node ) { return (the_node->next == NULL); @@ -170,7 +170,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_last( * @a the_chain and FALSE otherwise. */ RTEMS_INLINE_ROUTINE boolean _Chain_Has_only_one_node( - Chain_Control *the_chain + const Chain_Control *the_chain ) { return (the_chain->first == the_chain->last); @@ -189,7 +189,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Has_only_one_node( */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_head( Chain_Control *the_chain, - Chain_Node *the_node + const Chain_Node *the_node ) { return (the_node == _Chain_Head(the_chain)); @@ -205,7 +205,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_head( */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_tail( Chain_Control *the_chain, - Chain_Node *the_node + const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); -- cgit v1.2.3