X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhstore.c;h=e491dd9038748139abd6df294f04233db6b510e4;hb=49856d905bfbaf3025967cbfe7631440978bccc8;hp=7b44a96504494a1f799b861dac0f5d125ada2c51;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/mhstore.c b/uip/mhstore.c index 7b44a96..e491dd9 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -20,10 +20,6 @@ #include #include -#ifdef HAVE_SYS_WAIT_H -# include -#endif - static struct swit switches[] = { #define AUTOSW 0 { "auto", 0 }, @@ -92,7 +88,6 @@ CT parse_mime (char *); /* mhmisc.c */ int part_ok (CT, int); int type_ok (CT, int); -void set_endian (void); void flush_errors (void); /* mhstoresbr.c */ @@ -106,7 +101,7 @@ void freects_done (int) NORETURN; /* * static prototypes */ -static RETSIGTYPE pipeser (int); +static void pipeser (int); int @@ -150,10 +145,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case AUTOSW: autosw++; @@ -236,8 +231,6 @@ do_cache: parts[npart] = NULL; types[ntype] = NULL; - set_endian (); - /* * Check if we've specified an additional profile */ @@ -296,7 +289,7 @@ do_cache: adios (NULL, "out of memory"); ctp = cts; - if ((ct = parse_mime (file))); + if ((ct = parse_mime (file))) *ctp++ = ct; } else { /* @@ -387,7 +380,7 @@ do_cache: } -static RETSIGTYPE +static void pipeser (int i) { if (i == SIGQUIT) {