summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread/switch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-31 21:48:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-31 21:48:11 +0000
commit8deaa5cb1bdad9c4505896866607f4272b307e9a (patch)
treef2b66a24b21f1edc23c12fdb15eab63814fc036d /regress/lib/libpthread/switch
parent1472e2b5666bd9c64d37882b7cfb2596d9352eb3 (diff)
various cleanups; david says results are same
Diffstat (limited to 'regress/lib/libpthread/switch')
-rw-r--r--regress/lib/libpthread/switch/switch.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/regress/lib/libpthread/switch/switch.c b/regress/lib/libpthread/switch/switch.c
index 1d150a461af..f90e9bdca8a 100644
--- a/regress/lib/libpthread/switch/switch.c
+++ b/regress/lib/libpthread/switch/switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: switch.c,v 1.3 2002/10/12 18:59:13 marc Exp $ */
+/* $OpenBSD: switch.c,v 1.4 2003/07/31 21:48:07 deraadt Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -58,7 +58,8 @@ volatile int ending = 0;
/* ==========================================================================
* usage();
*/
-void usage(void)
+static void
+usage(void)
{
extern char *__progname;
printf("usage: %s [-?] [-c count]\n", __progname);
@@ -66,9 +67,8 @@ void usage(void)
errno = 0;
}
-void *
-new_thread(arg)
- void *arg;
+static void *
+new_thread(void *arg)
{
int i;
@@ -83,9 +83,7 @@ new_thread(arg)
}
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
pthread_t thread;
int count = 4;