From 82f89c97a6db1322a5456c7f08ccf0468fdbc66e Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 17 Nov 1993 16:27:44 +0000 Subject: [PATCH] signal now deals with void functions --- lang/basic/lib/trap.c | 3 ++- lang/m2/libm2/Unix.def | 5 ++--- lang/m2/libm2/sigtrp.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) 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) {