openbsd-ports/net/icb/patches/patch-icb_signals_c
2001-05-14 16:42:49 +00:00

41 lines
1.0 KiB
Plaintext

$OpenBSD: patch-icb_signals_c,v 1.1 2001/05/14 16:42:54 millert Exp $
--- icb/signals.c.orig Fri Feb 24 14:20:29 1995
+++ icb/signals.c Mon May 14 10:33:04 2001
@@ -22,14 +22,14 @@ trapsignals()
/* sighandler askquit(), suspend(), icbexit(); */
/* exit on a hangup or terminate signal */
- signal(SIGHUP, icbexit);
- signal(SIGTERM, icbexit);
+ signal(SIGHUP, (void *)icbexit);
+ signal(SIGTERM, (void *)icbexit);
/* on an interrupt, verify the user wants to quit */
- signal(SIGINT, askquit);
+ signal(SIGINT, (void *)askquit);
/* suspend on a stop signal */
- signal(SIGTSTP, suspend);
+ signal(SIGTSTP, (void *)suspend);
}
@@ -45,7 +45,7 @@ suspend()
sigsetmask(sigblock(0) &~ mask(SIGTSTP));
kill(0, SIGTSTP);
sigblock(mask(SIGTSTP));
- signal(SIGTSTP, suspend);
+ signal(SIGTSTP, (void *)suspend);
icbterm();
continued = 1;
}
@@ -73,7 +73,7 @@ askquit()
if (c == 'Y' || c == 'y')
icbexit();
- signal(SIGINT, askquit);
+ signal(SIGINT, (void *)askquit);
continued = 1;
if (oem)