summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-10 08:48:26 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-10 08:56:05 +0100
commit60bded9f8b8d423a0ef50242579401121fa8ba2c (patch)
treed9bf5ef61716d3ad9bdaa5712291045a8dabe7fc
parentscore: Add rtems_set_errno_and_return_value() (diff)
downloadrtems-60bded9f8b8d423a0ef50242579401121fa8ba2c.tar.bz2
posix: Use a value of 0 for SEM_FAILED
This is the standard NULL pointer.
-rw-r--r--cpukit/posix/include/semaphore.h2
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