From 60bded9f8b8d423a0ef50242579401121fa8ba2c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 Mar 2015 08:48:26 +0100 Subject: posix: Use a value of 0 for SEM_FAILED This is the standard NULL pointer. --- cpukit/posix/include/semaphore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3