about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--linuxthreads/ChangeLog4
-rw-r--r--linuxthreads/semaphore.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index fa20028a6e..cd5d10c5a3 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,7 @@
+2000-02-22  Ulrich Drepper  <drepper@redhat.com>
+
+	* semaphore.h (SEM_FAILED): Use 0 not NULL.
+
 2000-02-14  Ulrich Drepper  <drepper@redhat.com>
 
 	* condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
diff --git a/linuxthreads/semaphore.h b/linuxthreads/semaphore.h
index a3cc422377..21a9deaafe 100644
--- a/linuxthreads/semaphore.h
+++ b/linuxthreads/semaphore.h
@@ -39,7 +39,7 @@ typedef struct
 
 
 /* Value returned if `sem_open' failed.  */
-#define SEM_FAILED	((sem_t *) NULL)
+#define SEM_FAILED	((sem_t *) 0)
 
 /* Maximum value the semaphore can have.  */
 #define SEM_VALUE_MAX 	((int) ((~0u) >> 1))