diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-10 08:48:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-10 08:56:05 +0100 |
commit | 60bded9f8b8d423a0ef50242579401121fa8ba2c (patch) | |
tree | d9bf5ef61716d3ad9bdaa5712291045a8dabe7fc /cpukit/posix/include/semaphore.h | |
parent | score: Add rtems_set_errno_and_return_value() (diff) | |
download | rtems-60bded9f8b8d423a0ef50242579401121fa8ba2c.tar.bz2 |
posix: Use a value of 0 for SEM_FAILED
This is the standard NULL pointer.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/include/semaphore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/include/semaphore.h b/cpukit/posix/include/semaphore.h index b22453d2af..502150b4ad 100644 --- a/cpukit/posix/include/semaphore.h +++ b/cpukit/posix/include/semaphore.h @@ -45,7 +45,7 @@ typedef int sem_t; /* * 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 |