X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dbbbe1b73d4eba1f4d0d55ccab54f2f7130f395d..e5afa1df87c24d49f0572ff903d4b0ee2eb803a8:/uip/ap.c diff --git a/uip/ap.c b/uip/ap.c index 9250b08a..48117846 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -53,7 +53,7 @@ main (int argc, char **argv) char buf[BUFSIZ], **argp; char **arguments, *addrs[NADDRS]; - if (nmh_init(argv[0], 1)) { return 1; } + if (nmh_init(argv[0], 2)) { return 1; } mts_init (); arguments = getarguments (invo_name, argc, argv, 1); @@ -146,20 +146,19 @@ static int process (char *arg, int length) { int status = 0; - register char *cp; + char *cp; char error[BUFSIZ]; - register struct comp *cptr; - register struct pqpair *p, *q; + struct comp *cptr; + struct pqpair *p, *q; struct pqpair pq; - register struct mailname *mp; + struct mailname *mp; (q = &pq)->pq_next = NULL; while ((cp = getname (arg))) { - if ((p = (struct pqpair *) mh_xcalloc ((size_t) 1, sizeof(*p))) == NULL) - adios (NULL, "unable to allocate pqpair memory"); + NEW0(p); if ((mp = getm (cp, NULL, 0, error, sizeof(error))) == NULL) { - p->pq_text = getcpy (cp); - p->pq_error = getcpy (error); + p->pq_text = mh_xstrdup(cp); + p->pq_error = mh_xstrdup(error); status++; } else {