projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed debugging statement and added comments to the duplicate check
[mmh]
/
uip
/
ap.c
diff --git
a/uip/ap.c
b/uip/ap.c
index
dde1175
..
b5b0c5b
100644
(file)
--- a/
uip/ap.c
+++ b/
uip/ap.c
@@
-2,13
+2,15
@@
/*
* ap.c -- parse addresses 822-style
*
/*
* 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 <h/mh.h>
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
*/
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
-#include <zotnet/mts/mts.h>
+#include <h/mts.h>
#define NADDRS 100
#define NADDRS 100
@@
-40,11
+42,6
@@
static struct format *fmt;
static int dat[5];
/*
static int dat[5];
/*
- * prototypes
- */
-int sc_width (void); /* from termsbr.c */
-
-/*
* static prototypes
*/
static int process (char *, int, int);
* 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);
snprintf (buf, sizeof(buf), "%s [switches] addrs ...",
invo_name);
print_help (buf, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version (invo_name);
case VERSIONSW:
print_version (invo_name);
- done (1);
+ done (0);
case FORMSW:
if (!(form = *argp++) || *form == '-')
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);
for (addrp = 0; addrs[addrp]; addrp++)
status += process (addrs[addrp], width, normalize);
- return done (status);
+ done (status);
+ return 1;
}
struct pqpair {
}
struct pqpair {