From 796f12a85a70bd04125762f73ecccd27a91ff781 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Aug 2016 13:37:01 +0200 Subject: score: Add missing const qualifiers --- cpukit/score/include/rtems/score/chainimpl.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cpukit/score/include/rtems/score/chainimpl.h') diff --git a/cpukit/score/include/rtems/score/chainimpl.h b/cpukit/score/include/rtems/score/chainimpl.h index b50f4ff910..4664175700 100644 --- a/cpukit/score/include/rtems/score/chainimpl.h +++ b/cpukit/score/include/rtems/score/chainimpl.h @@ -256,10 +256,10 @@ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail( * @return This method returns the first node of the chain. */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( - Chain_Control *the_chain + const Chain_Control *the_chain ) { - return _Chain_Head( the_chain )->next; + return _Chain_Immutable_head( the_chain )->next; } /** @@ -290,10 +290,10 @@ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( * @return This method returns the last node of the chain. */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last( - Chain_Control *the_chain + const Chain_Control *the_chain ) { - return _Chain_Tail( the_chain )->previous; + return _Chain_Immutable_tail( the_chain )->previous; } /** @@ -323,7 +323,7 @@ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_last( * @return This method returns the next node on the chain. */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next( - Chain_Node *the_node + const Chain_Node *the_node ) { return the_node->next; @@ -355,7 +355,7 @@ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_next( * @return This method returns the previous node on the chain. */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous( - Chain_Node *the_node + const Chain_Node *the_node ) { return the_node->previous; -- cgit v1.2.3