projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mh_tailor-mhbuild
[mmh]
/
uip
/
rcvdist.c
diff --git
a/uip/rcvdist.c
b/uip/rcvdist.c
index
b210696
..
867104a
100644
(file)
--- a/
uip/rcvdist.c
+++ b/
uip/rcvdist.c
@@
-8,7
+8,8
@@
#include <h/mh.h>
#include <h/fmt_scan.h>
#include <h/rcvmail.h>
#include <h/mh.h>
#include <h/fmt_scan.h>
#include <h/rcvmail.h>
-#include <zotnet/tws/tws.h>
+#include <h/tws.h>
+#include <h/mts.h>
static struct swit switches[] = {
#define FORMSW 0
static struct swit switches[] = {
#define FORMSW 0
@@
-16,7
+17,7
@@
static struct swit switches[] = {
#define VERSIONSW 1
{ "version", 0 },
#define HELPSW 2
#define VERSIONSW 1
{ "version", 0 },
#define HELPSW 2
- { "help", 4 },
+ { "help", 0 },
{ NULL, 0 }
};
{ NULL, 0 }
};
@@
-28,7
+29,7
@@
static char tmpfil[BUFSIZ] = "";
* prototypes
*/
static void rcvdistout (FILE *, char *, char *);
* prototypes
*/
static void rcvdistout (FILE *, char *, char *);
-void done (int);
+int done (int);
int
int
@@
-117,7
+118,8
@@
main (int argc, char **argv)
default:
done (pidXwait(child_id, postproc));
}
default:
done (pidXwait(child_id, postproc));
}
-/* NOTREACHED */
+
+ return 0; /* dead code to satisfy the compiler */
}
/* very similar to routine in replsbr.c */
}
/* very similar to routine in replsbr.c */
@@
-205,13
+207,14
@@
rcvdistout (FILE *inb, char *form, char *addrs)
}
else {
i = strlen (cp = cptr->c_text) - 1;
}
else {
i = strlen (cp = cptr->c_text) - 1;
- if (cp[i] == '\n')
+ if (cp[i] == '\n') {
if (cptr->c_type & CT_ADDR) {
cp[i] = 0;
cp = add (",\n\t", cp);
}
else
cp = add ("\t", cp);
if (cptr->c_type & CT_ADDR) {
cp[i] = 0;
cp = add (",\n\t", cp);
}
else
cp = add ("\t", cp);
+ }
cptr->c_text = add (tmpbuf, cp);
}
while (state == FLDPLUS) {
cptr->c_text = add (tmpbuf, cp);
}
while (state == FLDPLUS) {
@@
-252,7
+255,7
@@
finished: ;
fclose (out);
free (scanl);
fclose (out);
free (scanl);
- for (nxtbuf = compbuffers, i = ncomps; cptr = *savecomp++; nxtbuf++, i--)
+ for (nxtbuf = compbuffers, i = ncomps; (cptr = *savecomp++); nxtbuf++, i--)
free (cptr->c_text);
while (i-- > 0)
free (*nxtbuf++);
free (cptr->c_text);
while (i-- > 0)
free (*nxtbuf++);
@@
-261,7
+264,7
@@
finished: ;
}
}
-void
+int
done (int status)
{
if (backup[0])
done (int status)
{
if (backup[0])
@@
-272,4
+275,5
@@
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 */
}
}