projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove duplicate sm_fgetc() declaration
[mmh]
/
uip
/
mhbuild.c
diff --git
a/uip/mhbuild.c
b/uip/mhbuild.c
index
cfe776f
..
9d9f553
100644
(file)
--- a/
uip/mhbuild.c
+++ b/
uip/mhbuild.c
@@
-74,7
+74,6
@@
static struct swit switches[] = {
/* mhbuildsbr.c */
/* mhbuildsbr.c */
-extern int checksw;
extern char *tmp; /* directory to place temp files */
/* mhcachesbr.c */
extern char *tmp; /* directory to place temp files */
/* mhcachesbr.c */
@@
-100,6
+99,7
@@
static int unlink_infile = 0;
static char outfile[BUFSIZ];
static int unlink_outfile = 0;
static char outfile[BUFSIZ];
static int unlink_outfile = 0;
+static void unlink_done (int) NORETURN;
/* mhbuildsbr.c */
CT build_mime (char *);
/* mhbuildsbr.c */
CT build_mime (char *);
@@
-126,6
+126,8
@@
main (int argc, char **argv)
CT ct, cts[2];
FILE *fp;
CT ct, cts[2];
FILE *fp;
+ done=unlink_done;
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
@@
-378,12
+380,13
@@
main (int argc, char **argv)
unlink_outfile = 0;
free_content (ct);
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
{
/*
* Check if we need to remove stray
@@
-395,5
+398,4
@@
done (int status)
unlink (outfile);
exit (status);
unlink (outfile);
exit (status);
- return 1; /* dead code to satisfy the compiler */
}
}