/*
- * rcvdist.c -- asynchronously redistribute messages
- *
- * 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.
- */
+** rcvdist.c -- asynchronously redistribute messages
+**
+** 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 <h/fmt_scan.h>
static char tmpfil[BUFSIZ] = "";
/*
- * prototypes
- */
+** prototypes
+*/
static void rcvdistout (FILE *, char *, char *);
static void unlink_done (int) NORETURN;
continue;
case HELPSW:
- snprintf (buf, sizeof(buf),
- "%s [switches] [switches for postproc] address ...",
- invo_name);
+ snprintf (buf, sizeof(buf), "%s [switches] [switches for postproc] address ...", invo_name);
print_help (buf, switches, 1);
done (1);
case VERSIONSW:
}
if (addrs == NULL)
- adios (NULL, "usage: %s [switches] [switches for postproc] address ...",
- invo_name);
+ adios (NULL, "usage: %s [switches] [switches for postproc] address ...", invo_name);
umask (~m_gmprot ());
cp = new_fs (form ? form : rcvdistcomps, NULL, NULL);
format_len = strlen (cp);
ncomps = fmt_compile (cp, &fmt) + 1;
- if (!(nxtbuf = compbuffers = (char **) calloc ((size_t) ncomps, sizeof(char *))))
+ if (!(nxtbuf = compbuffers =
+ (char **) calloc ((size_t) ncomps, sizeof(char *))))
adios (NULL, "unable to allocate component buffers");
- if (!(savecomp = used_buf = (struct comp **) calloc ((size_t) (ncomps + 1), sizeof(struct comp *))))
+ if (!(savecomp = used_buf =
+ (struct comp **) calloc ((size_t) (ncomps + 1),
+ sizeof(struct comp *))))
adios (NULL, "unable to allocate component buffer stack");
savecomp += ncomps + 1;
*--savecomp = 0;
if (cptr->c_type & CT_ADDR) {
cp[i] = 0;
cp = add (",\n\t", cp);
- }
- else
+ } else
cp = add ("\t", cp);
}
cptr->c_text = add (tmpbuf, cp);
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++);