X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c884567409a8a125b57a2b4cab466c7456a37c07..5b02a8e4890a747f23aa9fa57a221dcf1b20533a:/uip/ap.c?ds=sidebyside diff --git a/uip/ap.c b/uip/ap.c index 1b1fee3c..a44ecf55 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -1,6 +1,4 @@ - -/* - * ap.c -- parse addresses 822-style +/* ap.c -- parse addresses 822-style * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -97,8 +95,7 @@ main (int argc, char **argv) } if (addrp == NADDRS) adios (NULL, "more than %d addresses", NADDRS); - else - addrs[addrp++] = cp; + addrs[addrp++] = cp; } addrs[addrp] = NULL; @@ -130,7 +127,7 @@ main (int argc, char **argv) status += process (addrs[addrp], width); fmt_free (fmt, 1); - done (status); + done(min(status, MAX_EXIT)); return 1; }