diff --git a/lang/basic/lib/trap.c b/lang/basic/lib/trap.c index 7a7702f38..9d957f8ae 100644 --- a/lang/basic/lib/trap.c +++ b/lang/basic/lib/trap.c @@ -17,6 +17,7 @@ int nr; /*debug printf("trap set to %d\n",nr);*/ _trpline=nr; } +void _trpfatal(i) int i; { @@ -35,7 +36,7 @@ int i; _ini_trp() { /* initialize trap routines */ - int i, _trpfatal(); + int i; for(i=0;i= sizeof(__traps)/sizeof(__traps[0])) { @@ -69,7 +69,7 @@ sigtrp(trapno, signo) oldtrap = __traps[signo]; - if ((oldctch = signal(signo, ctch)) == (int (*)())-1) /* errno set by signal */ + if ((oldctch = signal(signo, ctch)) == (void (*)())-1) /* errno set by signal */ return -1; else if (oldctch == SIG_IGN) {