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.
This commit is contained in:
Sebastian Huber
2015-03-09 13:18:33 +01:00
parent 60bded9f8b
commit 77e682ec85
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ extern "C" {
/*
* 11.1 Semaphore Characteristics, P1003.1b-1993, p.219
*/
typedef int sem_t;
typedef uint32_t sem_t;
/*
* Bad semaphore Id

View File

@@ -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
}