This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 04/15] Convert pthread_rwlock_try(rd/wr)lock to prototypes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]