diff options
Diffstat (limited to 'cpukit/posix/src/semdestroy.c')
-rw-r--r-- | cpukit/posix/src/semdestroy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/semdestroy.c b/cpukit/posix/src/semdestroy.c index 01ea1606e0..2daccce17c 100644 --- a/cpukit/posix/src/semdestroy.c +++ b/cpukit/posix/src/semdestroy.c @@ -31,7 +31,7 @@ int sem_destroy( { register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; - + the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_ERROR: @@ -49,7 +49,7 @@ int sem_destroy( _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } - + _POSIX_Semaphore_Delete( the_semaphore ); _Thread_Enable_dispatch(); return 0; |