X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhbuild.c;h=2776f7c8d15011915f1caffafb8a9a4b76332922;hp=cfe776fe9c816741b37eac374bdd4539726352f0;hb=38615191e71744b066425e0c44412b62dbe49cc2;hpb=1bb1f6c3f38b05060bf699ea2743f7386889bf63 diff --git a/uip/mhbuild.c b/uip/mhbuild.c index cfe776f..2776f7c 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -100,6 +100,7 @@ static int unlink_infile = 0; static char outfile[BUFSIZ]; static int unlink_outfile = 0; +static void unlink_done (int); /* mhbuildsbr.c */ CT build_mime (char *); @@ -126,6 +127,8 @@ main (int argc, char **argv) CT ct, cts[2]; FILE *fp; + done=unlink_done; + #ifdef LOCALE setlocale(LC_ALL, ""); #endif @@ -378,12 +381,13 @@ main (int argc, char **argv) unlink_outfile = 0; free_content (ct); - return done (0); + done (0); + return 1; } -int -done (int status) +static void +unlink_done (int status) { /* * Check if we need to remove stray @@ -395,5 +399,4 @@ done (int status) unlink (outfile); exit (status); - return 1; /* dead code to satisfy the compiler */ }