Changeset 05ac47d in rtems


Ignore:
Timestamp:
Sep 5, 2014, 7:13:46 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
07b4594
Parents:
4d5250c
git-author:
Sebastian Huber <sebastian.huber@…> (09/05/14 07:13:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/08/14 05:53:02)
Message:

posix: Use RTEMS_DECONST()

Location:
cpukit/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/key.h

    r4d5250c r05ac47d  
    6969   * @brief The thread specific POSIX key value.
    7070   */
    71   const void *value;
     71  void *value;
    7272} POSIX_Keys_Key_value_pair;
    7373
  • cpukit/posix/src/keysetspecific.c

    r4d5250c r05ac47d  
    5050      if ( p != NULL ) {
    5151        value_pair_ptr = POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( p );
    52         value_pair_ptr->value = value;
     52        value_pair_ptr->value = RTEMS_DECONST( void *, value );
    5353      } else {
    5454        value_pair_ptr = _POSIX_Keys_Key_value_pair_allocate();
     
    6262        value_pair_ptr->key = key;
    6363        value_pair_ptr->thread = executing;
    64         value_pair_ptr->value = value;
     64        value_pair_ptr->value = RTEMS_DECONST( void *, value );
    6565        /* The insert can only go wrong if the same node is already in a unique
    6666         * tree. This has been already checked with the _RBTree_Find() */
Note: See TracChangeset for help on using the changeset viewer.