]> git.marmaro.de Git - mmh/blobdiff - uip/ap.c
Added check for EPERM when checking errno after a failed link(2).
[mmh] / uip / ap.c
index 843ece4e973808271eb90fd61064815e3cd27c41..b0934fbcebbb035a1f3c54825fb38b4b0451b816 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -2,7 +2,9 @@
 /*
  * 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/mh.h>
@@ -39,11 +41,6 @@ static struct format *fmt;
 
 static int dat[5];
 
 
 static int dat[5];
 
-/*
- * prototypes
- */
-int sc_width (void);  /* from termsbr.c */
-
 /*
  * static prototypes
  */
 /*
  * static prototypes
  */
@@ -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 {