summaryrefslogtreecommitdiff
path: root/regress/sys/kern/tame/sigabrt/sigabrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/tame/sigabrt/sigabrt.c')
-rw-r--r--regress/sys/kern/tame/sigabrt/sigabrt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/regress/sys/kern/tame/sigabrt/sigabrt.c b/regress/sys/kern/tame/sigabrt/sigabrt.c
index 4b6ec4aba56..890f862acd2 100644
--- a/regress/sys/kern/tame/sigabrt/sigabrt.c
+++ b/regress/sys/kern/tame/sigabrt/sigabrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigabrt.c,v 1.2 2015/08/23 04:59:31 semarie Exp $ */
+/* $OpenBSD: sigabrt.c,v 1.3 2015/09/10 11:16:08 semarie Exp $ */
/*
* Copyright (c) 2015 Sebastien Marie <semarie@openbsd.org>
*
@@ -15,11 +15,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/tame.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
+#include <unistd.h>
void
handler(int sigraised)
@@ -37,7 +36,7 @@ main(int argc, char *argv[])
printf("permitted STDIO\n");
fflush(stdout);
- tame(TAME_ABORT, NULL);
+ tame("abort", NULL);
/* this will triggered tame_fail() */
printf("forbidden STDIO 1\n");