Browse Source

nptl: fix even more old style declarations

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley 15 years ago
parent
commit
5ea195692d

+ 6 - 7
libpthread/nptl/pthread_create.c

@@ -55,8 +55,7 @@ unsigned int __nptl_nthreads = 1;
 
 struct pthread *
 internal_function
-__find_in_stack_list (pd)
-     struct pthread *pd;
+__find_in_stack_list (struct pthread *pd)
 {
   list_t *entry;
   struct pthread *result = NULL;
@@ -335,11 +334,11 @@ static const struct pthread_attr default_attr =
 
 
 int
-__pthread_create_2_1 (newthread, attr, start_routine, arg)
-     pthread_t *newthread;
-     const pthread_attr_t *attr;
-     void *(*start_routine) (void *);
-     void *arg;
+__pthread_create_2_1 (
+     pthread_t *newthread,
+     const pthread_attr_t *attr,
+     void *(*start_routine) (void *),
+     void *arg)
 {
   STACK_VARIABLES;
 

+ 1 - 2
libpthread/nptl/sysdeps/pthread/pthread_barrier_wait.c

@@ -25,8 +25,7 @@
 
 /* Wait on barrier.  */
 int
-pthread_barrier_wait (barrier)
-     pthread_barrier_t *barrier;
+pthread_barrier_wait (pthread_barrier_t *barrier)
 {
   struct pthread_barrier *ibarrier = (struct pthread_barrier *) barrier;
   int result = 0;

+ 1 - 2
libpthread/nptl/sysdeps/pthread/pthread_cond_broadcast.c

@@ -27,8 +27,7 @@
 
 
 int
-__pthread_cond_broadcast (cond)
-     pthread_cond_t *cond;
+__pthread_cond_broadcast (pthread_cond_t *cond)
 {
   /* Make sure we are alone.  */
   lll_mutex_lock (cond->__data.__lock);

+ 1 - 2
libpthread/nptl/sysdeps/pthread/pthread_cond_signal.c

@@ -27,8 +27,7 @@
 
 
 int
-__pthread_cond_signal (cond)
-     pthread_cond_t *cond;
+__pthread_cond_signal (pthread_cond_t *cond)
 {
   /* Make sure we are alone.  */
   lll_mutex_lock (cond->__data.__lock);

+ 3 - 3
libpthread/nptl/sysdeps/pthread/pthread_once.c

@@ -26,9 +26,9 @@ static lll_lock_t once_lock = LLL_LOCK_INITIALIZER;
 
 
 int
-__pthread_once (once_control, init_routine)
-     pthread_once_t *once_control;
-     void (*init_routine) (void);
+__pthread_once (
+     pthread_once_t *once_control,
+     void (*init_routine) (void))
 {
   /* XXX Depending on whether the LOCK_IN_ONCE_T is defined use a
      global lock variable or one which is part of the pthread_once_t

+ 1 - 2
libpthread/nptl/sysdeps/pthread/pthread_rwlock_rdlock.c

@@ -26,8 +26,7 @@
 
 /* Acquire read lock for RWLOCK.  */
 int
-__pthread_rwlock_rdlock (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_rdlock (pthread_rwlock_t *rwlock)
 {
   int result = 0;
 

+ 3 - 3
libpthread/nptl/sysdeps/pthread/pthread_rwlock_timedrdlock.c

@@ -26,9 +26,9 @@
 
 /* Try to acquire read lock for RWLOCK or return after specfied time.  */
 int
-pthread_rwlock_timedrdlock (rwlock, abstime)
-     pthread_rwlock_t *rwlock;
-     const struct timespec *abstime;
+pthread_rwlock_timedrdlock (
+     pthread_rwlock_t *rwlock,
+     const struct timespec *abstime)
 {
   int result = 0;
 

+ 3 - 3
libpthread/nptl/sysdeps/pthread/pthread_rwlock_timedwrlock.c

@@ -26,9 +26,9 @@
 
 /* Try to acquire write lock for RWLOCK or return after specfied time.	*/
 int
-pthread_rwlock_timedwrlock (rwlock, abstime)
-     pthread_rwlock_t *rwlock;
-     const struct timespec *abstime;
+pthread_rwlock_timedwrlock (
+     pthread_rwlock_t *rwlock,
+     const struct timespec *abstime)
 {
   int result = 0;
 

+ 1 - 2
libpthread/nptl/sysdeps/pthread/pthread_rwlock_wrlock.c

@@ -26,8 +26,7 @@
 
 /* Acquire write lock for RWLOCK.  */
 int
-__pthread_rwlock_wrlock (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_wrlock (pthread_rwlock_t *rwlock)
 {
   int result = 0;