diff options
author | 2017-07-29 17:36:59 +0000 | |
---|---|---|
committer | 2017-07-29 17:36:59 +0000 | |
commit | d8d4eb71fdd4c0ca905967d2dfb841292c49d5ca (patch) | |
tree | 0f0caea1c43bd4f768183ed04b3eff653e086f0c /regress/lib/libpthread/fork/fork.c | |
parent | Add a bcmaux(4) driver that handles clocks and interrupts for the (diff) | |
download | wireguard-openbsd-d8d4eb71fdd4c0ca905967d2dfb841292c49d5ca.tar.xz wireguard-openbsd-d8d4eb71fdd4c0ca905967d2dfb841292c49d5ca.zip |
Remove unused function and variable to shut up warning. Put back
a status print that was lost in previous.
Diffstat (limited to 'regress/lib/libpthread/fork/fork.c')
-rw-r--r-- | regress/lib/libpthread/fork/fork.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/regress/lib/libpthread/fork/fork.c b/regress/lib/libpthread/fork/fork.c index 3c15b41866a..7e4fc9e4f45 100644 --- a/regress/lib/libpthread/fork/fork.c +++ b/regress/lib/libpthread/fork/fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fork.c,v 1.5 2017/07/29 16:53:38 tedu Exp $ */ +/* $OpenBSD: fork.c,v 1.6 2017/07/29 17:36:59 bluhm Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -49,18 +49,9 @@ #include <sys/wait.h> #include "test.h" - -static void * -empty(void *arg) -{ - - return (void *)0x12345678; -} - static void * sleeper(void *arg) { - pthread_set_name_np(pthread_self(), "slpr"); sleep(10); PANIC("sleeper timed out"); @@ -72,7 +63,6 @@ main(int argc, char *argv[]) { int flags; pthread_t sleeper_thread; - void *result; int status; pid_t parent_pid; pid_t child_pid; @@ -100,6 +90,7 @@ main(int argc, char *argv[]) /* Our sleeper thread should have disappeared */ printf("sleeper should have disappeared\n"); + printf("child ok\n"); _exit(0); PANIC("child _exit"); } |