[1/5] gdb.threads/pthreads.c, K&R -> ANSI function style

Message ID 20230920175959.2305271-2-pedro@palves.net
State New
Headers
Series Adjust/fix gdb.thread/pthreads.exp for Cygwin |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Testing passed

Commit Message

Pedro Alves Sept. 20, 2023, 5:59 p.m. UTC
  gdb.threads/pthreads.c is declaring functions with old K&R style.
This commit converts them to ANSI style.

Change-Id: I1ce007c67bb4ab1e49248c014c7881e46634f8f8
---
 gdb/testsuite/gdb.threads/pthreads.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
  

Patch

diff --git a/gdb/testsuite/gdb.threads/pthreads.c b/gdb/testsuite/gdb.threads/pthreads.c
index fe1f89d0a23..7ec5604676f 100644
--- a/gdb/testsuite/gdb.threads/pthreads.c
+++ b/gdb/testsuite/gdb.threads/pthreads.c
@@ -27,8 +27,7 @@ 
 static int verbose = 0;
 
 static void
-common_routine (arg)
-     int arg;
+common_routine (int arg)
 {
   static int from_thread1;
   static int from_thread2;
@@ -90,8 +89,7 @@  thread2 (void * arg)
 }
 
 void
-foo (a, b, c)
-     int a, b, c;
+foo (int a, int b, int c)
 {
   int d, e, f;
 
@@ -99,9 +97,7 @@  foo (a, b, c)
 }
 
 int
-main(argc, argv)
-     int argc;
-     char **argv;
+main (int argc, char **argv)
 {
   pthread_t tid1, tid2;
   int j;