#include "sig.h"
void
-sig_init()
+sig_init(void)
{
-#ifdef lint
- ;
-#else
sigignore(SIGINT); /* for inquiry of existence via kill call */
#ifdef SIGTTOU
sigignore(SIGTTOU);
sigset(SIGQUIT, sig_catcher);
sigset(SIGILL, sig_catcher);
sigset(SIGFPE, sig_catcher);
+#if 0
sigset(SIGBUS, sig_catcher);
sigset(SIGSEGV, sig_catcher);
+#endif
sigset(SIGSYS, sig_catcher);
sigset(SIGTERM, sig_catcher);
}
sigset(SIGTSTP, stop_catcher);
sigset(SIGSTOP, stop_catcher);
#endif
-#endif /* lint */
}
#ifdef SIGTSTP
#endif
void
-mytstp()
+mytstp(void)
{
resetty();
#ifdef SIGTSTP
}
void /* very much void */
-finalize(status)
-int status;
+finalize(int status)
{
if (bizarre)
resetty();
sig_catcher(int signo)
{
#ifdef VERBOSE
- static char *signame[] = {
+ static const char *signame[] = {
"",
"HUP",
"INT",
totalscore -= possiblescore / 2;
}
save_game();
- if (signo != SIGHUP && signo != SIGQUIT)
+ if (signo != SIGHUP && signo != SIGQUIT) {
#ifdef VERBOSE
IF(verbose)
printf("\r\nCaught %s%s--%s\r\n",
ELSE
#endif
#ifdef TERSE
- printf("\r\nSignal %d--bye bye\r\n",signo);
+ printf("\r\nsignal %d--bye bye\r\n",signo);
#endif
+ }
switch (signo) {
case SIGBUS:
case SIGILL: