pkgsrc/games/ularn/patches/patch-az
agc dc08309f80 Initial import of ularn-6.12.92 into the packages collection.
Provided in PR 12072 by Ben Collver (collver@linuxfreemail.com).

Ularn is a fantasy games in which your child has contracted a strange dis-
ease, and none of your home remedies seem to have any effect.  You set
out to find a remedy in a limited amount of time, and to collect gold
along the way of course!

Ularn is based on larn, and adds the concept of character classes.
2001-04-27 15:27:30 +00:00

76 lines
1.4 KiB
Text

$NetBSD: patch-az,v 1.1.1.1 2001/04/27 15:27:31 agc Exp $
--- signal.c.orig Fri Jun 19 13:55:37 1992
+++ signal.c Sat Jan 13 21:03:53 2001
@@ -1,8 +1,10 @@
/* signal.c */
+#include <sys/types.h>
+#include <unistd.h>
#include "header.h"
#include "extern.h"
-s2choose() /* text to be displayed if ^C during intro screen */
+void s2choose(void) /* text to be displayed if ^C during intro screen */
{
cursor(1,24);
lprcat("Press ");
@@ -14,7 +16,8 @@
}
SIGTYPE
-cntlc() /* what to do for an interrupt */
+cntlc(siggy) /* what to do for an interrupt */
+int siggy;
{
if (nosignal) {
signal(SIGINT, cntlc);
@@ -37,7 +40,8 @@
* subroutine to save the game if a hangup signal
*/
SIGTYPE
-sgam()
+sgam(siggy)
+int siggy;
{
if (ckpflag) {
if (fork() == 0) {
@@ -86,10 +90,10 @@
** sigsave called before a shell escape
** sigreset called after a shell escape
*/
-static SIGTYPE (*intsave)(),
- (*quitsave)();
+static SIGTYPE (*intsave)(int),
+ (*quitsave)(int);
-sigsetup()
+void sigsetup(void)
{
SIGTYPE tstop();
signal(SIGHUP, sgam);
@@ -110,7 +114,7 @@
#endif /* SIGTSTP */
}
-sigsave()
+void sigsave(void)
{
signal(SIGHUP, SIG_DFL);
intsave = signal(SIGINT, SIG_DFL);
@@ -130,7 +134,7 @@
#endif /* SIGTSTP */
}
-sigreset()
+void sigreset(void)
{
signal(SIGHUP, sgam);
signal(SIGINT, intsave);
@@ -177,6 +181,7 @@
/*
* routine to process a fatal error signal
*/
+SIGTYPE
sigpanic(sig)
int sig;
{