summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/keysetspecific.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-05 09:13:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-08 07:53:02 +0200
commit05ac47d75e4d945c0c30922260c8bbf1922cdd0f (patch)
tree89b70079f69080b3b78de44efd4982dd0cba94ba /cpukit/posix/src/keysetspecific.c
parentposix: Fix warning (diff)
downloadrtems-05ac47d75e4d945c0c30922260c8bbf1922cdd0f.tar.bz2
posix: Use RTEMS_DECONST()
Diffstat (limited to 'cpukit/posix/src/keysetspecific.c')
-rw-r--r--cpukit/posix/src/keysetspecific.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/keysetspecific.c b/cpukit/posix/src/keysetspecific.c
index ee85ac2cb5..8e4b3a43ca 100644
--- a/cpukit/posix/src/keysetspecific.c
+++ b/cpukit/posix/src/keysetspecific.c
@@ -49,7 +49,7 @@ int pthread_setspecific(
p = _POSIX_Keys_Find( key, executing, &search_node );
if ( p != NULL ) {
value_pair_ptr = POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( p );
- value_pair_ptr->value = value;
+ value_pair_ptr->value = RTEMS_DECONST( void *, value );
} else {
value_pair_ptr = _POSIX_Keys_Key_value_pair_allocate();
@@ -61,7 +61,7 @@ int pthread_setspecific(
value_pair_ptr->key = key;
value_pair_ptr->thread = executing;
- value_pair_ptr->value = value;
+ value_pair_ptr->value = RTEMS_DECONST( void *, value );
/* The insert can only go wrong if the same node is already in a unique
* tree. This has been already checked with the _RBTree_Find() */
_RBTree_Insert(