diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-06 15:28:59 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-08 14:11:21 +0200 |
commit | c9b784f3e75d74e251eb68a978e832b37279ff66 (patch) | |
tree | b32525ba63aa53bb621828e71ca01c5583976068 /cpukit/posix/src/keysetspecific.c | |
parent | bsp/xilinx_zynq_zc706: Add. (diff) | |
download | rtems-c9b784f3e75d74e251eb68a978e832b37279ff66.tar.bz2 |
posix: Delete POSIX_Keys_Freechain type
Use the POSIX configuration value directly. Use right type early and
avoid casts. Use proper unlimited objects API. Check workspace
allocation. Make functions static.
Diffstat (limited to 'cpukit/posix/src/keysetspecific.c')
-rw-r--r-- | cpukit/posix/src/keysetspecific.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/keysetspecific.c b/cpukit/posix/src/keysetspecific.c index ee718a4a03..8f5ce72035 100644 --- a/cpukit/posix/src/keysetspecific.c +++ b/cpukit/posix/src/keysetspecific.c @@ -43,8 +43,8 @@ int pthread_setspecific( switch ( location ) { case OBJECTS_LOCAL: - value_pair_ptr = ( POSIX_Keys_Key_value_pair * ) - _Freechain_Get( &_POSIX_Keys_Keypool.super_fc ); + value_pair_ptr = _POSIX_Keys_Key_value_pair_allocate(); + if ( !value_pair_ptr ) { _Objects_Put( &the_key->Object ); |