projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make print_aka() and print_usr() static. They're not used outside ali.c.
[mmh]
/
uip
/
forw.c
diff --git
a/uip/forw.c
b/uip/forw.c
index
cff49c7
..
319cc39
100644
(file)
--- a/
uip/forw.c
+++ b/
uip/forw.c
@@
-3,12
+3,17
@@
* forw.c -- forward a message, or group of messages.
*
* $Id$
* forw.c -- forward a message, or group of messages.
*
* $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
*/
#include <h/mh.h>
#include <fcntl.h>
#include <h/fmt_scan.h>
*/
#include <h/mh.h>
#include <fcntl.h>
#include <h/fmt_scan.h>
-#include <zotnet/tws/tws.h>
+#include <h/tws.h>
+#include <h/utils.h>
#define IFORMAT "digest-issue-%s"
#define IFORMAT "digest-issue-%s"
@@
-62,7
+67,7
@@
static struct swit switches[] = {
#define VERSIONSW 22
{ "version", 0 },
#define HELPSW 23
#define VERSIONSW 22
{ "version", 0 },
#define HELPSW 23
- { "help", 4 },
+ { "help", 0 },
#define FILESW 24
{ "file file", 4 }, /* interface from msh */
#define FILESW 24
{ "file file", 4 }, /* interface from msh */
@@
-684,8
+689,7
@@
build_form (char *form, char *digest, int volume, int issue)
if ((in = dup (fileno (tmp))) == NOTOK)
adios ("dup", "unable to");
if ((in = dup (fileno (tmp))) == NOTOK)
adios ("dup", "unable to");
- if ((line = malloc ((unsigned) fmtsize)) == NULL)
- adios (NULL, "unable to allocate format line storage");
+ line = mh_xmalloc ((unsigned) fmtsize);
fmt_scan (fmt, line, fmtsize, dat);
fputs (line, tmp);
free (line);
fmt_scan (fmt, line, fmtsize, dat);
fputs (line, tmp);
free (line);