forked from Imagelibrary/rtems
posix: Use a value of 0 for SEM_FAILED
This is the standard NULL pointer.
This commit is contained in:
@@ -45,7 +45,7 @@ typedef int sem_t;
|
|||||||
/*
|
/*
|
||||||
* Bad semaphore Id
|
* Bad semaphore Id
|
||||||
*/
|
*/
|
||||||
#define SEM_FAILED (sem_t *) -1
|
#define SEM_FAILED ((sem_t *)0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 11.2.1 Initialize an Unnamed Semaphore, P1003.1b-1993, p.219
|
* 11.2.1 Initialize an Unnamed Semaphore, P1003.1b-1993, p.219
|
||||||
|
|||||||
Reference in New Issue
Block a user