This program is icky, and will die soon. So, don't put a whole lot of

effort into it, but make it build again by casting the second arg to signal().
This commit is contained in:
thorpej 1998-09-29 08:27:36 +00:00
parent 005af97f9e
commit 5a5380b92b
1 changed files with 4 additions and 4 deletions

View File

@ -91,8 +91,8 @@ main() {
#ifdef UNIX
initterminal(setjmp(intrenv));
signal(SIGINT, onbrk);
signal(SIGTERM, onterm);
signal(SIGINT, (void (*) __P((int))) onbrk);
signal(SIGTERM, (void (*) __P((int))) onterm);
reading = 0;
#else
initterminal(0);
@ -1912,7 +1912,7 @@ bye () {
#ifdef UNIX
onbrk() {
signal(SIGINT, onbrk);
signal(SIGINT, (void (*) __P((int))) onbrk);
if (reading)
brkrd = 1;
else
@ -1920,7 +1920,7 @@ onbrk() {
}
onterm() {
signal(SIGTERM, onterm);
signal(SIGTERM, (void (*) __P((int))) onterm);
longjmp(intrenv, 1);
}
#endif