diff options
author | christos <christos@NetBSD.org> | 2020-11-10 22:42:19 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2020-11-10 22:42:19 +0000 |
commit | a6ad8fb14c6bed68eb8b37750e1b2fea36a8c908 (patch) | |
tree | 96a006165d8615e5e0cb4e78ef064e66b8e16437 /warp/sig.c | |
parent | 1bb28c57a5d2c06152fff5de57a902bec60cc30d (diff) | |
download | bsdgames-darwin-a6ad8fb14c6bed68eb8b37750e1b2fea36a8c908.tar.gz bsdgames-darwin-a6ad8fb14c6bed68eb8b37750e1b2fea36a8c908.tar.zst bsdgames-darwin-a6ad8fb14c6bed68eb8b37750e1b2fea36a8c908.zip |
Time warp forward 34 years so that it compiles (but not work)
Diffstat (limited to 'warp/sig.c')
-rw-r--r-- | warp/sig.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,7 +23,7 @@ #include "sig.h" void -sig_init() +sig_init(void) { #ifdef lint ; @@ -72,7 +72,7 @@ cont_catcher(int x) #endif void -mytstp() +mytstp(void) { resetty(); #ifdef SIGTSTP @@ -94,8 +94,7 @@ mytstp() } void /* very much void */ -finalize(status) -int status; +finalize(int status) { if (bizarre) resetty(); @@ -113,7 +112,7 @@ void sig_catcher(int signo) { #ifdef VERBOSE - static char *signame[] = { + static const char *signame[] = { "", "HUP", "INT", @@ -180,7 +179,7 @@ sig_catcher(int signo) 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", @@ -189,8 +188,9 @@ sig_catcher(int signo) 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: |