X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fap.c;h=b5b0c5b99c1631167b4303a4f48c28ed31b36660;hb=75e27e3157b8023906ac68ea43b47555ddf5cd51;hp=843ece4e973808271eb90fd61064815e3cd27c41;hpb=dee387b53ab0d42922f857b60d6f980c9e79d16f;p=mmh diff --git a/uip/ap.c b/uip/ap.c index 843ece4..b5b0c5b 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -2,7 +2,9 @@ /* * ap.c -- parse addresses 822-style * - * $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. */ #include @@ -40,11 +42,6 @@ static struct format *fmt; static int dat[5]; /* - * prototypes - */ -int sc_width (void); /* from termsbr.c */ - -/* * static prototypes */ static int process (char *, int, int); @@ -85,10 +82,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [switches] addrs ...", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version (invo_name); - done (1); + done (0); case FORMSW: if (!(form = *argp++) || *form == '-') @@ -147,7 +144,8 @@ main (int argc, char **argv) for (addrp = 0; addrs[addrp]; addrp++) status += process (addrs[addrp], width, normalize); - return done (status); + done (status); + return 1; } struct pqpair {