X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1bb1f6c3f38b05060bf699ea2743f7386889bf63..419ccf0da01ec9f0b0700a6bea7ac5f216cd28d8:/uip/mhbuild.c?ds=inline diff --git a/uip/mhbuild.c b/uip/mhbuild.c index cfe776fe..2776f7c8 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 */ }