aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-19 05:43:00 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-19 05:43:00 +0000
commit87cf76569873bac4c8874e2fa85c55f33c70eb24 (patch)
treedce82002da958289605177cb5805663934ad02cb /libjava
parentde27502cf45535f7fd2a96f5010d4cd3a951de2e (diff)
2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
* include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.' (_Jv_MutexInit): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00245.html ) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42303 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/include/posix-threads.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index e3879010269..793617153ef 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
+
+ * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
+ (_Jv_MutexInit): Likewise.
+
2001-05-18 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index 75285ca6f50..ca4bfa6ad4b 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -99,7 +99,7 @@ int _Jv_CondNotifyAll (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu);
inline void
_Jv_CondInit (_Jv_ConditionVariable_t *cv)
{
- cv->first = NULL;
+ cv->first = 0;
}
//
@@ -109,7 +109,7 @@ _Jv_CondInit (_Jv_ConditionVariable_t *cv)
inline void
_Jv_MutexInit (_Jv_Mutex_t *mu)
{
- pthread_mutex_init (&mu->mutex, NULL);
+ pthread_mutex_init (&mu->mutex, 0);
mu->count = 0;
mu->owner = 0;