projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Note 'new' commands.
[mmh]
/
uip
/
rcvdist.c
diff --git
a/uip/rcvdist.c
b/uip/rcvdist.c
index
c4be1b2
..
7ee47fd
100644
(file)
--- a/
uip/rcvdist.c
+++ b/
uip/rcvdist.c
@@
-34,7
+34,7
@@
static char tmpfil[BUFSIZ] = "";
* prototypes
*/
static void rcvdistout (FILE *, char *, char *);
* prototypes
*/
static void rcvdistout (FILE *, char *, char *);
-int done (int);
+static void unlink_done (int) NORETURN;
int
int
@@
-46,6
+46,8
@@
main (int argc, char **argv)
char **argp, **arguments, *vec[MAXARGS];
register FILE *fp;
char **argp, **arguments, *vec[MAXARGS];
register FILE *fp;
+ done=unlink_done;
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
@@
-202,7
+204,7
@@
rcvdistout (FILE *inb, char *form, char *addrs)
case FLDPLUS:
if ((cptr = wantcomp[CHASH (name)]))
do {
case FLDPLUS:
if ((cptr = wantcomp[CHASH (name)]))
do {
- if (!strcasecmp (name, cptr->c_name)) {
+ if (!mh_strcasecmp (name, cptr->c_name)) {
char_read += msg_count;
if (!cptr->c_text) {
cptr->c_text = tmpbuf;
char_read += msg_count;
if (!cptr->c_text) {
cptr->c_text = tmpbuf;
@@
-268,8
+270,8
@@
finished: ;
}
}
-int
-done (int status)
+static void
+unlink_done (int status)
{
if (backup[0])
unlink (backup);
{
if (backup[0])
unlink (backup);
@@
-279,5
+281,4
@@
done (int status)
unlink (tmpfil);
exit (status ? RCV_MBX : RCV_MOK);
unlink (tmpfil);
exit (status ? RCV_MBX : RCV_MOK);
- return 1; /* dead code to satisfy the compiler */
}
}