signal now deals with void functions

This commit is contained in:
ceriel
1993-11-17 16:38:52 +00:00
parent 0e2665ca35
commit c14352585a
7 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ char *prompt;
struct sgttyb tty, ttysave;
static char pwdbuf[9];
int fd;
int (*savesig)();
void (*savesig)();
if ((fd = open("/dev/tty", 0)) < 0) fd = 0;
savesig = signal(SIGINT, SIG_IGN);

View File

@@ -40,8 +40,8 @@ pclose(iop)
{
int fd = fileno(iop);
int status, wret;
int (*intsave)() = signal(SIGINT, SIG_IGN);
int (*quitsave)() = signal(SIGQUIT, SIG_IGN);
void (*intsave)() = signal(SIGINT, SIG_IGN);
void (*quitsave)() = signal(SIGQUIT, SIG_IGN);
fclose(iop);
while ((wret = wait(&status)) != -1) {

View File

@@ -5,7 +5,7 @@ system(str)
char *str;
{
int pid, exitstatus, waitval;
int (*sigint)(), (*sigquit)();
void (*sigint)(), (*sigquit)();
int i;
if ((pid = fork()) < 0) return -1; /* How do we distinguish this