summaryrefslogtreecommitdiffstats
path: root/adventure/init.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>1996-05-21 10:48:07 +0000
committermrg <mrg@NetBSD.org>1996-05-21 10:48:07 +0000
commit4b62a0368fd5c80f3c11847e1611718031a54467 (patch)
tree4c905bf36634cc825c0bdf30da52828b30d3088f /adventure/init.c
parent711ef65c66491e5359a0d14ba54d977ebef5dc3f (diff)
downloadbsdgames-darwin-4b62a0368fd5c80f3c11847e1611718031a54467.tar.gz
bsdgames-darwin-4b62a0368fd5c80f3c11847e1611718031a54467.tar.zst
bsdgames-darwin-4b62a0368fd5c80f3c11847e1611718031a54467.zip
give up setuid-ness. we don't need it. while i'm here, include
<sys/signal.h> and use SIGINT rather than 2.
Diffstat (limited to 'adventure/init.c')
-rw-r--r--adventure/init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/adventure/init.c b/adventure/init.c
index 663e267f..e16daa94 100644
--- a/adventure/init.c
+++ b/adventure/init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.2 1995/03/21 12:05:04 cgd Exp $ */
+/* $NetBSD: init.c,v 1.3 1996/05/21 10:48:09 mrg Exp $ */
/*-
* Copyright (c) 1993
@@ -42,13 +42,14 @@
#if 0
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 6/2/93";
#else
-static char rcsid[] = "$NetBSD: init.c,v 1.2 1995/03/21 12:05:04 cgd Exp $";
+static char rcsid[] = "$NetBSD: init.c,v 1.3 1996/05/21 10:48:09 mrg Exp $";
#endif
#endif /* not lint */
/* Re-coding of advent in C: data initialization */
#include <sys/types.h>
+#include <sys/signal.h>
#include <stdio.h>
#include "hdr.h"
@@ -203,7 +204,7 @@ linkdata() /* secondary data manipulation */
trapdel() /* come here if he hits a del */
{ delhit++; /* main checks, treats as QUIT */
- signal(2,trapdel); /* catch subsequent DELs */
+ signal(SIGINT,trapdel); /* catch subsequent DELs */
}