signal now deals with void functions
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user