summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/semaphorenametoid.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/semaphorenametoid.c')
-rw-r--r--cpukit/posix/src/semaphorenametoid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/semaphorenametoid.c b/cpukit/posix/src/semaphorenametoid.c
index 9f14a1e79f..b485fea1e5 100644
--- a/cpukit/posix/src/semaphorenametoid.c
+++ b/cpukit/posix/src/semaphorenametoid.c
@@ -26,7 +26,7 @@
int _POSIX_Semaphore_Name_to_id(
const char *name,
- Objects_Id *id
+ sem_t *id
)
{
Objects_Name_to_id_errors status;
@@ -38,7 +38,7 @@ int _POSIX_Semaphore_Name_to_id(
return EINVAL;
status = _Objects_Name_to_id(
- &_POSIX_Semaphore_Information, (char *)name, 0, id );
+ &_POSIX_Semaphore_Information, (char *)name, 0, (Objects_Id*)id );
if ( status == OBJECTS_SUCCESSFUL )
return 0;