summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/semopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/semopen.c')
-rw-r--r--cpukit/posix/src/semopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c
index 72920e4938..b51d2043be 100644
--- a/cpukit/posix/src/semopen.c
+++ b/cpukit/posix/src/semopen.c
@@ -130,7 +130,7 @@ return_id:
the_semaphore->Semaphore_id = the_semaphore->Object.id;
id = &the_semaphore->Semaphore_id;
#else
- id = &the_semaphore->Object.id;
+ id = (sem_t *)&the_semaphore->Object.id;
#endif
return id;
}