X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhshow.c;h=4a07d016b384dd66a9ba10476fe29623daab36d8;hb=8edc5aaf86f9f77124664f6801bc6c6cdf258173;hp=a1fff551b36c7fa1f4b5261219a5dfc06957de74;hpb=5b9d883db0318ed2b84bb82dee880d7381f99188;p=mmh diff --git a/uip/mhshow.c b/uip/mhshow.c index a1fff55..4a07d01 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -18,10 +18,6 @@ #include #include -#ifdef HAVE_SYS_WAIT_H -# include -#endif - static struct swit switches[] = { #define CHECKSW 0 { "check", 0 }, @@ -52,16 +48,9 @@ static struct swit switches[] = { #define HELPSW 13 { "help", 0 }, /* -** switches for moreproc/mhlproc -*/ -#define PROGSW 14 - { "moreproc program", -4 }, -#define WIDTHSW 15 - { "width columns", -4 }, -/* ** switches for debugging */ -#define DEBUGSW 16 +#define DEBUGSW 14 { "debug", -5 }, { NULL, 0 } }; @@ -78,7 +67,6 @@ extern char *cache_private; /* mhshowsbr.c */ extern int serialsw; -extern char *progsw; extern int nolist; extern char *formsw; @@ -114,7 +102,7 @@ void freects_done(int) NORETURN; /* ** static prototypes */ -static RETSIGTYPE pipeser(int); +static void pipeser(int); int @@ -230,21 +218,6 @@ do_cache: formsw = getcpy(etcpath(cp)); continue; - /* - ** Switches for moreproc/mhlproc - */ - case PROGSW: - if (!(progsw = *argp++) || *progsw == '-') - adios(NULL, "missing argument to %s", - argp[-2]); - continue; - - case WIDTHSW: - if (!(cp = *argp++) || *cp == '-') - adios(NULL, "missing argument to %s", - argp[-2]); - continue; - case VERBSW: verbosw = 1; continue; @@ -326,7 +299,7 @@ do_cache: adios(NULL, "out of memory"); ctp = cts; - if ((ct = parse_mime(file))); + if ((ct = parse_mime(file))) *ctp++ = ct; } else { /* @@ -432,7 +405,7 @@ do_cache: } -static RETSIGTYPE +static void pipeser(int i) { if (i == SIGQUIT) {