X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fap.c;h=e2d43dabde09ab34989ca18853d214b8d942bcaf;hp=af97e9ecfedcdd6d79159f893c18091220d79552;hb=6e7d34c614291079de750ceda1d4f5ec537beb81;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;ds=sidebyside diff --git a/uip/ap.c b/uip/ap.c index af97e9e..e2d43da 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -128,18 +129,16 @@ static int process(char *arg, int norm) { int status = 0; - register char *cp; + char *cp; char buffer[BUFSIZ + 1], 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 *) - calloc((size_t) 1, sizeof(*p))) == NULL) - adios(EX_OSERR, NULL, "unable to allocate pqpair memory"); + p = (struct pqpair *) mh_xcalloc((size_t) 1, sizeof(*p)); if ((mp = getm(cp, NULL, 0, norm, error)) == NULL) { p->pq_text = getcpy(cp); p->pq_error = getcpy(error);