Added missing NULL sentinels in switches array.
[mmh] / uip / mhlist.c
index 8902f75..45f3e9d 100644 (file)
 #include <h/mhcachesbr.h>
 #include <h/utils.h>
 
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
-
 static struct swit switches[] = {
 #define CHECKSW  0
        { "check", 0 },
@@ -53,10 +49,6 @@ static struct swit switches[] = {
        { "version", 0 },
 #define HELPSW  14
        { "help", 0 },
-
-/*
-** switches for debugging
-*/
 #define DEBUGSW  15
        { "debug", -5 },
        { NULL, 0 }
@@ -110,7 +102,7 @@ void freects_done(int) NORETURN;
 /*
 ** static prototypes
 */
-static RETSIGTYPE pipeser(int);
+static void pipeser(int);
 
 
 int
@@ -279,7 +271,7 @@ do_cache:
                        adios(NULL, "out of memory");
                ctp = cts;
 
-               if ((ct = parse_mime(file)));
+               if ((ct = parse_mime(file)))
                        *ctp++ = ct;
        } else {
                /*
@@ -371,7 +363,7 @@ do_cache:
 }
 
 
-static RETSIGTYPE
+static void
 pipeser(int i)
 {
        if (i == SIGQUIT) {