aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-20 07:41:51 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-20 07:41:51 +0000
commit8f31c0eff575bb20505c16635bebee530af533d7 (patch)
tree58f885f48824c8336af3a77a84fc5a55ff21c178 /nptl
parent5896ffa882668a7761a4af3c2ef955b906f91faa (diff)
downloadglibc-8f31c0eff575bb20505c16635bebee530af533d7.tar
glibc-8f31c0eff575bb20505c16635bebee530af533d7.tar.gz
glibc-8f31c0eff575bb20505c16635bebee530af533d7.tar.bz2
glibc-8f31c0eff575bb20505c16635bebee530af533d7.zip
Update.
2003-09-20 Ulrich Drepper <drepper@redhat.com> * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change type of DECR parameter to int. * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog6
-rw-r--r--nptl/pthreadP.h2
-rw-r--r--nptl/pthread_mutex_unlock.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 26c05224a2..7671777f27 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,9 @@
+2003-09-20 Ulrich Drepper <drepper@redhat.com>
+
+ * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
+ type of DECR parameter to int.
+ * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
+
2003-09-18 Jakub Jelinek <jakub@redhat.com>
* tst-attr3.c (tf, do_test): Print stack start/end/size and
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h
index 1981fc4aeb..4159ea6862 100644
--- a/nptl/pthreadP.h
+++ b/nptl/pthreadP.h
@@ -287,7 +287,7 @@ extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex);
extern int __pthread_mutex_unlock_internal (pthread_mutex_t *__mutex)
attribute_hidden;
extern int __pthread_mutex_unlock_usercnt (pthread_mutex_t *__mutex,
- bool __decr)
+ int __decr)
attribute_hidden internal_function;
extern int __pthread_mutexattr_init (pthread_mutexattr_t *attr);
extern int __pthread_mutexattr_destroy (pthread_mutexattr_t *attr);
diff --git a/nptl/pthread_mutex_unlock.c b/nptl/pthread_mutex_unlock.c
index de820d7401..32bc2a4bc1 100644
--- a/nptl/pthread_mutex_unlock.c
+++ b/nptl/pthread_mutex_unlock.c
@@ -26,7 +26,7 @@ int
internal_function attribute_hidden
__pthread_mutex_unlock_usercnt (mutex, decr)
pthread_mutex_t *mutex;
- bool decr;
+ int decr;
{
switch (__builtin_expect (mutex->__data.__kind, PTHREAD_MUTEX_TIMED_NP))
{
@@ -72,7 +72,7 @@ int
__pthread_mutex_unlock (mutex)
pthread_mutex_t *mutex;
{
- return __pthread_mutex_unlock_usercnt (mutex, true);
+ return __pthread_mutex_unlock_usercnt (mutex, 1);
}
strong_alias (__pthread_mutex_unlock, pthread_mutex_unlock)
strong_alias (__pthread_mutex_unlock, __pthread_mutex_unlock_internal)