This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 04/15] Convert pthread_rwlock_try(rd/wr)lock to prototypes
- From: Andi Kleen <andi at firstfloor dot org>
- To: libc-alpha at sourceware dot org
- Cc: hjl dot tools at gmail dot com,Andi Kleen <ak at linux dot intel dot com>
- Date: Sat, 22 Dec 2012 19:02:31 -0800
- Subject: [PATCH 04/15] Convert pthread_rwlock_try(rd/wr)lock to prototypes
- References: <1356231762-23777-1-git-send-email-andi@firstfloor.org>
From: Andi Kleen <ak@linux.intel.com>
Later patches include these files in sysdeps, and the sysdeps sub Makefiles
make the compiler complain about non prototype functions. So change
them to prototypes.
2012-12-09 <ak@linux.intel.com>
* nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
Conver to prototype.
* nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Dito.
---
nptl/pthread_rwlock_tryrdlock.c | 3 +--
nptl/pthread_rwlock_trywrlock.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/nptl/pthread_rwlock_tryrdlock.c b/nptl/pthread_rwlock_tryrdlock.c
index beaa970..25dc09f 100644
--- a/nptl/pthread_rwlock_tryrdlock.c
+++ b/nptl/pthread_rwlock_tryrdlock.c
@@ -22,8 +22,7 @@
int
-__pthread_rwlock_tryrdlock (rwlock)
- pthread_rwlock_t *rwlock;
+__pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
{
int result = EBUSY;
diff --git a/nptl/pthread_rwlock_trywrlock.c b/nptl/pthread_rwlock_trywrlock.c
index 92750b8..be5af28 100644
--- a/nptl/pthread_rwlock_trywrlock.c
+++ b/nptl/pthread_rwlock_trywrlock.c
@@ -22,8 +22,7 @@
int
-__pthread_rwlock_trywrlock (rwlock)
- pthread_rwlock_t *rwlock;
+__pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock)
{
int result = EBUSY;
--
1.7.7.6