aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2023-09-15 19:54:40 +0100
committerPedro Alves <pedro@palves.net>2023-09-27 15:28:39 +0100
commit3c3aa8bfc21de6e3f03c09c3dbc28fdd252af74a (patch)
treeef7a8ae83d23585eadaa202067a81333759908fb /gdb/testsuite
parenta4045fdf2e859a23b7817f6dd5b18a1f6d22fc49 (diff)
downloadgdb-3c3aa8bfc21de6e3f03c09c3dbc28fdd252af74a.zip
gdb-3c3aa8bfc21de6e3f03c09c3dbc28fdd252af74a.tar.gz
gdb-3c3aa8bfc21de6e3f03c09c3dbc28fdd252af74a.tar.bz2
gdb.threads/pthreads.c, K&R -> ANSI function style
gdb.threads/pthreads.c is declaring functions with old K&R style. This commit converts them to ANSI style. Approved-By: Tom Tromey <tom@tromey.com> Change-Id: I1ce007c67bb4ab1e49248c014c7881e46634f8f8
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.threads/pthreads.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.threads/pthreads.c b/gdb/testsuite/gdb.threads/pthreads.c
index fe1f89d..7ec5604 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;