summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread/preemption_float/preemption_float.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-07-31 21:48:02 +0000
committerderaadt <deraadt@openbsd.org>2003-07-31 21:48:02 +0000
commitdb3296cf5c1dd9058ceecc3a29fe4aaa0bd26000 (patch)
tree24a628e1f5d78508c3b3f7895685e06ffb25a794 /regress/lib/libpthread/preemption_float/preemption_float.c
parentdelint (diff)
downloadwireguard-openbsd-db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000.tar.xz
wireguard-openbsd-db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000.zip
various cleanups; david says results are same
Diffstat (limited to 'regress/lib/libpthread/preemption_float/preemption_float.c')
-rw-r--r--regress/lib/libpthread/preemption_float/preemption_float.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/regress/lib/libpthread/preemption_float/preemption_float.c b/regress/lib/libpthread/preemption_float/preemption_float.c
index 6cd7cec2467..1f0b571d4d2 100644
--- a/regress/lib/libpthread/preemption_float/preemption_float.c
+++ b/regress/lib/libpthread/preemption_float/preemption_float.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: preemption_float.c,v 1.3 2003/01/23 00:52:52 marc Exp $ */
+/* $OpenBSD: preemption_float.c,v 1.4 2003/07/31 21:48:05 deraadt Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -47,7 +47,8 @@ int limit = 2;
int float_passed = 0;
int float_failed = 1;
-void *log_loop (void *x) {
+static void *
+log_loop (void *x) {
int i;
double d, d1, d2;
/* sleep (1); */
@@ -70,7 +71,8 @@ void *log_loop (void *x) {
pthread_exit(&float_passed);
}
-void *trig_loop (void *x) {
+static void *
+trig_loop (void *x) {
int i;
double d, d1, d2;
/* sleep (1); */
@@ -95,7 +97,7 @@ void *trig_loop (void *x) {
pthread_exit(&float_passed);
}
-int
+static int
floatloop(void)
{
pthread_t thread[2];
@@ -112,7 +114,7 @@ floatloop(void)
}
int
-main()
+main(int argc, char *argv[])
{
pthread_t thread;
int *result;