From 77e682ec8511f4bd2cde6f340cb938d60d38edd9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Mar 2015 13:18:33 +0100 Subject: posix: Change sem_t to the 32-bit object type This change is also valid for 16-bit object type architectures since in this case POSIX_Semaphore_Control::Semaphore_id is used as a proxy. --- cpukit/posix/src/semopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix/src/semopen.c') diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c index 0568ee69ec..4e5b61c44f 100644 --- a/cpukit/posix/src/semopen.c +++ b/cpukit/posix/src/semopen.c @@ -139,6 +139,6 @@ return_id: the_semaphore->Semaphore_id = the_semaphore->Object.id; return &the_semaphore->Semaphore_id; #else - return (sem_t *)&the_semaphore->Object.id; + return &the_semaphore->Object.id; #endif } -- cgit v1.2.3