signal now deals with void functions

This commit is contained in:
ceriel
1993-11-17 16:53:43 +00:00
parent 1ac5aa547d
commit e3e19a7a0d
4 changed files with 13 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
static jmp_buf setjmpbuf;
static
static void
alfun(){
longjmp(setjmpbuf, 1);
} /* used with sleep() below */
@@ -14,7 +14,7 @@ sleep(n)
{
/* sleep(n) pauses for 'n' seconds by scheduling an alarm interrupt. */
unsigned oldalarm;
int (*oldsig)();
void (*oldsig)();
if (n <= 0) return;
if (setjmp(setjmpbuf)) {

View File

@@ -1,7 +1,7 @@
/* $Header$ */
#include <signal.h>
typedef int (*callvec)() ;
typedef void (*callvec)() ;
static callvec vector[16] = {
SIG_DFL, SIG_DFL, SIG_DFL, SIG_DFL, SIG_DFL, SIG_DFL, SIG_DFL, SIG_DFL,