summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-09 17:30:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-09 17:30:13 +0000
commitd858fdbbaf459f0b6de17c9e7d9be7444aff7d35 (patch)
tree409ff48b7e9fb7594405250b0b8ba581727920cd /cpukit/posix
parentreduced maximum keys to 2 to more easily generate error (diff)
downloadrtems-d858fdbbaf459f0b6de17c9e7d9be7444aff7d35.tar.bz2
merged remote object id and invalid id error cases.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/key.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c
index 5974ec4b5d..1203343f66 100644
--- a/cpukit/posix/src/key.c
+++ b/cpukit/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 );