signal now deals with void functions
authorceriel <none@none>
Wed, 17 Nov 1993 16:38:52 +0000 (16:38 +0000)
committerceriel <none@none>
Wed, 17 Nov 1993 16:38:52 +0000 (16:38 +0000)
lang/cem/libcc/stdio/getpass.c
lang/cem/libcc/stdio/popen.c
lang/cem/libcc/stdio/system.c
lang/fortran/lib/libF77/s_paus.c
lang/fortran/lib/libF77/signal_.c
lang/occam/lib/channel.c
mach/sparc/libsys/signal.c

index cc90597..b5e4e1c 100644 (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);
index 64f9601..95cde81 100644 (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) {
index 351734f..fea139e 100644 (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
index 789e45b..cac1768 100644 (file)
@@ -2,7 +2,7 @@
 #include "f2c.h"
 #define PAUSESIG 15
 
-static waitpause()
+static void waitpause()
 {
 return;
 }
index d8bc378..58c4910 100644 (file)
@@ -1,6 +1,6 @@
 #include "f2c.h"
 
-typedef int (*sig_type)();
+typedef void (*sig_type)();
 extern sig_type signal();
 
 integer signal_(sigp, procp)
index be409ff..e7579ee 100644 (file)
@@ -86,7 +86,7 @@ void chan_out(v, c) long v; register chan *c;
 }
 \f
 #ifndef __BSD4_2
-static int timeout();
+static void timeout();
 #endif
 
 int chan_any(c) register chan *c;
@@ -170,7 +170,7 @@ int chan_any(c) register chan *c;
  * timeout() to prevent it from getting lost.
  */
 
-static int timeout(sig)
+static void timeout(sig)
 {
        signal(SIGALRM, timeout);
        alarm(1);
index 5c829ae..9a9574f 100644 (file)
@@ -1,11 +1,11 @@
 static long masks[32];
 static long flags[32];
-int (*
+void (*
 signal(sig,handler))()
-       int (*handler)();
+       void (*handler)();
 {
        struct {
-               int (*sv_handler)();
+               void (*sv_handler)();
                long    sv_mask;
                long    sv_flags;
        } v, ov;
@@ -13,13 +13,13 @@ signal(sig,handler))()
        v.sv_handler = handler;
        v.sv_mask = masks[sig];
        v.sv_flags = flags[sig];
-       if (sigvec(sig,&v, &ov) < 0) return (int (*)()) -1;
+       if (sigvec(sig,&v, &ov) < 0) return (void (*)()) -1;
        if (v.sv_mask != ov.sv_mask || v.sv_flags != ov.sv_flags) {
                v.sv_mask = ov.sv_mask;
                masks[sig] = ov.sv_mask;
                v.sv_flags = ov.sv_flags;
                flags[sig] = ov.sv_flags;
-               if (sigvec(sig,&v,(char *) 0) < 0) return (int (*)()) -1;
+               if (sigvec(sig,&v,(char *) 0) < 0) return (void (*)()) -1;
        }
        return ov.sv_handler;
 }