X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c6f2d14d9c38345075629af3487c2de491584ca1..a062e4ec504f324c5d5ea7907fef3a737f4d742a:/sbr/fmt_addr.c diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index b3db6288..4684fa7f 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -1,6 +1,4 @@ - -/* - * fmt_addr.c -- format an address field (from fmt_scan) +/* fmt_addr.c -- format an address field (from fmt_scan) * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -52,7 +50,7 @@ char * formataddr (char *orig, char *str) { int len; - int isgroup; + bool isgroup; char *dst; char *cp; char *sp; @@ -81,13 +79,13 @@ formataddr (char *orig, char *str) } /* concatenate all the new addresses onto 'buf' */ - for (isgroup = 0; (cp = getname (str)); ) { + for (isgroup = false; (cp = getname (str)); ) { if ((mp = getm (cp, NULL, 0, NULL, 0)) == NULL) continue; if (isgroup && (mp->m_gname || !mp->m_ingrp)) { *dst++ = ';'; - isgroup = 0; + isgroup = false; } /* if we get here we're going to add an address */ if (dst != buf) { @@ -97,7 +95,7 @@ formataddr (char *orig, char *str) if (mp->m_gname) { CHECKMEM (mp->m_gname); CPY (mp->m_gname); - isgroup++; + isgroup = true; } sp = adrformat (mp); CHECKMEM (sp); @@ -110,7 +108,7 @@ formataddr (char *orig, char *str) *dst = '\0'; last_dst = dst; - return (buf); + return buf; } char *concataddr (char *orig, char *str)