X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhbuild.c;h=1c5abdc3c42c3211d7b039be7009a12612ae28fe;hp=bacec1003d26f62ecb697b4d678dfdf9f9b91da6;hb=389877bae1fe1a9f7259b8979f6a930744d90fab;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/uip/mhbuild.c b/uip/mhbuild.c index bacec10..1c5abdc 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -3,6 +3,10 @@ * mhbuild.c -- expand/translate MIME composition files * * $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,11 +15,12 @@ #include #include #include -#include -#include +#include +#include #include #include #include +#include #ifdef HAVE_SYS_WAIT_H # include @@ -57,15 +62,13 @@ static struct swit switches[] = { #define VERSIONSW 16 { "version", 0 }, #define HELPSW 17 - { "help", 4 }, + { "help", 0 }, #define DEBUGSW 18 { "debug", -5 }, { NULL, 0 } }; -extern int errno; - /* mhbuildsbr.c */ extern int checksw; extern char *tmp; /* directory to place temp files */ @@ -363,12 +366,11 @@ main (int argc, char **argv) unlink_outfile = 0; free_content (ct); - done (0); - /* NOT REACHED */ + return done (0); } -void +int done (int status) { /* @@ -381,4 +383,5 @@ done (int status) unlink (outfile); exit (status); + return 1; /* dead code to satisfy the compiler */ }