From d858fdbbaf459f0b6de17c9e7d9be7444aff7d35 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 9 Aug 1996 17:30:13 +0000 Subject: merged remote object id and invalid id error cases. --- cpukit/posix/src/key.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'cpukit/posix') 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 ); -- cgit v1.2.3