diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-09 17:30:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-09 17:30:13 +0000 |
commit | d858fdbbaf459f0b6de17c9e7d9be7444aff7d35 (patch) | |
tree | 409ff48b7e9fb7594405250b0b8ba581727920cd /c | |
parent | reduced maximum keys to 2 to more easily generate error (diff) | |
download | rtems-d858fdbbaf459f0b6de17c9e7d9be7444aff7d35.tar.bz2 |
merged remote object id and invalid id error cases.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/exec/posix/src/key.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/c/src/exec/posix/src/key.c b/c/src/exec/posix/src/key.c index 5974ec4b5d..1203343f66 100644 --- a/c/src/exec/posix/src/key.c +++ b/c/src/exec/posix/src/key.c @@ -116,9 +116,8 @@ int pthread_setspecific( the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { case OBJECTS_ERROR: + case OBJECTS_REMOTE: /* should never happen */ return EINVAL; - case OBJECTS_REMOTE: - return EINVAL; /* should never happen */ case OBJECTS_LOCAL: index = _Objects_Get_index( _Thread_Executing->Object.id ); class = _Objects_Get_class( _Thread_Executing->Object.id ); @@ -147,9 +146,8 @@ void *pthread_getspecific( the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { case OBJECTS_ERROR: + case OBJECTS_REMOTE: /* should never happen */ return NULL; - case OBJECTS_REMOTE: - return 0; /* should never happen */ case OBJECTS_LOCAL: index = _Objects_Get_index( _Thread_Executing->Object.id ); class = _Objects_Get_class( _Thread_Executing->Object.id ); @@ -176,9 +174,8 @@ int pthread_key_delete( the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { case OBJECTS_ERROR: + case OBJECTS_REMOTE: /* should never happen */ return EINVAL; - case OBJECTS_REMOTE: - return 0; /* should never happen */ case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Keys_Information, &the_key->Object ); |