summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2002-06-16 23:05:14 +0000
committermarc <marc@openbsd.org>2002-06-16 23:05:14 +0000
commitf21051b8d9a0a1c5ddfa7aa262d39513e6291a3f (patch)
tree7750bc30758b0f60987381d47bbccd26b3e36cd3
parentOops, uncomment wsdisplay at vga, commented out by mistake last time. (diff)
downloadwireguard-openbsd-f21051b8d9a0a1c5ddfa7aa262d39513e6291a3f.tar.xz
wireguard-openbsd-f21051b8d9a0a1c5ddfa7aa262d39513e6291a3f.zip
write output to stdout instead of fprintf to stderr. This brings it
in line with all of the other pthread regression tests.
-rw-r--r--regress/lib/libc_r/pthread_specific/pthread_specific.c6
-rw-r--r--regress/lib/libpthread/pthread_specific/pthread_specific.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libc_r/pthread_specific/pthread_specific.c b/regress/lib/libc_r/pthread_specific/pthread_specific.c
index 16c28f2c8cb..7c030bacabc 100644
--- a/regress/lib/libc_r/pthread_specific/pthread_specific.c
+++ b/regress/lib/libc_r/pthread_specific/pthread_specific.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread_specific.c,v 1.1 2002/05/03 10:08:55 wcobb Exp $ */
+/* $OpenBSD: pthread_specific.c,v 1.2 2002/06/16 23:05:14 marc Exp $ */
/*
* Copyright (c) 2002 CubeSoft Communications, Inc.
@@ -42,7 +42,7 @@ run_thread(void *arg)
{
int i;
- fprintf(stderr, ".");
+ CHECKe(write(STDOUT_FILENO, ".", 1));
for (i = 0; i < 32767; i++) {
void *p;
@@ -77,7 +77,7 @@ main()
for (i = 0; i < NTHREADS; i++) {
CHECKr(pthread_join(threads[i], NULL));
}
- fprintf(stderr, "\n");
+ CHECKe(write(STDOUT_FILENO, "\n", 1));
CHECKr(pthread_key_delete(key));
diff --git a/regress/lib/libpthread/pthread_specific/pthread_specific.c b/regress/lib/libpthread/pthread_specific/pthread_specific.c
index 16c28f2c8cb..7c030bacabc 100644
--- a/regress/lib/libpthread/pthread_specific/pthread_specific.c
+++ b/regress/lib/libpthread/pthread_specific/pthread_specific.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread_specific.c,v 1.1 2002/05/03 10:08:55 wcobb Exp $ */
+/* $OpenBSD: pthread_specific.c,v 1.2 2002/06/16 23:05:14 marc Exp $ */
/*
* Copyright (c) 2002 CubeSoft Communications, Inc.
@@ -42,7 +42,7 @@ run_thread(void *arg)
{
int i;
- fprintf(stderr, ".");
+ CHECKe(write(STDOUT_FILENO, ".", 1));
for (i = 0; i < 32767; i++) {
void *p;
@@ -77,7 +77,7 @@ main()
for (i = 0; i < NTHREADS; i++) {
CHECKr(pthread_join(threads[i], NULL));
}
- fprintf(stderr, "\n");
+ CHECKe(write(STDOUT_FILENO, "\n", 1));
CHECKr(pthread_key_delete(key));