diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/mutexget.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/posix/src/mutexget.c b/cpukit/posix/src/mutexget.c index 4a05ddd9a2..5ad33b8c7a 100644 --- a/cpukit/posix/src/mutexget.c +++ b/cpukit/posix/src/mutexget.c @@ -61,12 +61,10 @@ POSIX_Mutex_Control *_POSIX_Mutex_Get ( Objects_Locations *location ) { - Objects_Id *id = (Objects_Id *)mutex; - - ___POSIX_Mutex_Get_support( id, location ); + ___POSIX_Mutex_Get_support( mutex, location ); return (POSIX_Mutex_Control *) - _Objects_Get( &_POSIX_Mutex_Information, *id, location ); + _Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location ); } POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( @@ -75,10 +73,12 @@ POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( ISR_Level *level ) { - Objects_Id *id = (Objects_Id *)mutex; - - ___POSIX_Mutex_Get_support( id, location ); + ___POSIX_Mutex_Get_support( mutex, location ); - return (POSIX_Mutex_Control *) - _Objects_Get_isr_disable( &_POSIX_Mutex_Information, *id, location, level ); + return (POSIX_Mutex_Control *) _Objects_Get_isr_disable( + &_POSIX_Mutex_Information, + (Objects_Id) *mutex, + location, + level + ); } |