X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlist.c;h=4fc17dca6f7c7efd307d5e0ac5f3b737466bfbc2;hp=d5f290823540ebd5116f8f252a3b0c5df5b07a4c;hb=4885712264980e6cbc2039f9158027bee9213475;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/uip/mhlist.c b/uip/mhlist.c index d5f2908..4fc17dc 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -3,6 +3,10 @@ * mhlist.c -- list the contents of MIME messages * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -11,8 +15,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include @@ -58,7 +62,7 @@ static struct swit switches[] = { #define VERSIONSW 13 { "version", 0 }, #define HELPSW 14 - { "help", 4 }, + { "help", 0 }, /* * switches for debugging @@ -69,8 +73,6 @@ static struct swit switches[] = { }; -extern int errno; - /* mhparse.c */ extern int checksw; extern char *tmp; /* directory to place temp files */ @@ -395,8 +397,7 @@ do_cache: context_save (); /* save the context file */ } - done (0); - /* NOTREACHED */ + return done (0); } @@ -415,7 +416,7 @@ pipeser (int i) } -void +int done (int status) { CT *ctp; @@ -425,4 +426,5 @@ done (int status) free_content (*ctp); exit (status); + return 1; /* dead code to satisfy the compiler */ }