[rtems commit] posix: Add const to _POSIX_Keys_Key_value_find()

Sebastian Huber sebh at rtems.org
Fri May 20 14:18:07 UTC 2016


Module:    rtems
Branch:    master
Commit:    0cc60718d07d1744692163f8c517792afc24c02c
Changeset: http://git.rtems.org/rtems/commit/?id=0cc60718d07d1744692163f8c517792afc24c02c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May 20 11:42:30 2016 +0200

posix: Add const to _POSIX_Keys_Key_value_find()

---

 cpukit/posix/include/rtems/posix/keyimpl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/posix/include/rtems/posix/keyimpl.h b/cpukit/posix/include/rtems/posix/keyimpl.h
index 833e652..1148123 100644
--- a/cpukit/posix/include/rtems/posix/keyimpl.h
+++ b/cpukit/posix/include/rtems/posix/keyimpl.h
@@ -140,8 +140,8 @@ RTEMS_INLINE_ROUTINE void *_POSIX_Keys_Key_value_map( RBTree_Node *node )
 }
 
 RTEMS_INLINE_ROUTINE POSIX_Keys_Key_value_pair *_POSIX_Keys_Key_value_find(
-  pthread_key_t   key,
-  Thread_Control *the_thread
+  pthread_key_t         key,
+  const Thread_Control *the_thread
 )
 {
   return _RBTree_Find_inline(



More information about the vc mailing list