diff options
Diffstat (limited to 'cpukit/posix/src/keyrundestructors.c')
-rw-r--r-- | cpukit/posix/src/keyrundestructors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/posix/src/keyrundestructors.c b/cpukit/posix/src/keyrundestructors.c index f778d076b8..f2c3b8e380 100644 --- a/cpukit/posix/src/keyrundestructors.c +++ b/cpukit/posix/src/keyrundestructors.c @@ -49,9 +49,9 @@ void _POSIX_Keys_Run_destructors( for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { - the_key = (POSIX_Keys_Control *) + the_key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table[ index ]; - + if ( the_key && the_key->is_active && the_key->destructor ) { value = the_key->Values[ pthread_class ][ pthread_index ]; if ( value ) { @@ -62,7 +62,7 @@ void _POSIX_Keys_Run_destructors( } } - if ( are_all_null == TRUE ) + if ( are_all_null == TRUE ) return; iterations++; @@ -75,6 +75,6 @@ void _POSIX_Keys_Run_destructors( */ if ( iterations >= PTHREAD_DESTRUCTOR_ITERATIONS ) - return; + return; } } |