X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/008837e090c008e3afe7a9c8667070bafa091e62..98c2e7d95bda262ef23e8f0838e5b86d08ed4e4f:/sbr/fmt_addr.c diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index d71d956c..b3db6288 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -2,8 +2,6 @@ /* * fmt_addr.c -- format an address field (from fmt_scan) * - * $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. @@ -53,12 +51,12 @@ static unsigned int bufsiz; /* current size of buf */ char * formataddr (char *orig, char *str) { - register int len; - register int isgroup; - register char *dst; - register char *cp; - register char *sp; - register struct mailname *mp = NULL; + int len; + int isgroup; + char *dst; + char *cp; + char *sp; + struct mailname *mp = NULL; /* if we don't have a buffer yet, get one */ if (bufsiz == 0) { @@ -84,7 +82,7 @@ formataddr (char *orig, char *str) /* concatenate all the new addresses onto 'buf' */ for (isgroup = 0; (cp = getname (str)); ) { - if ((mp = getm (cp, NULL, 0, fmt_norm, NULL)) == NULL) + if ((mp = getm (cp, NULL, 0, NULL, 0)) == NULL) continue; if (isgroup && (mp->m_gname || !mp->m_ingrp)) { @@ -114,3 +112,8 @@ formataddr (char *orig, char *str) last_dst = dst; return (buf); } + +char *concataddr (char *orig, char *str) +{ + return formataddr(orig, str); +}