]> git.marmaro.de Git - mmh/blobdiff - uip/ap.c
Don't allow blind aliases with sendmail/pipe mts. Before this change,
[mmh] / uip / ap.c
index 85683f933601723eacc9e1e2f15885eda3367ba3..b5b0c5b99c1631167b4303a4f48c28ed31b36660 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -2,8 +2,6 @@
 /*
  * 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.
@@ -43,11 +41,6 @@ static struct format *fmt;
 
 static int dat[5];
 
-/*
- * prototypes
- */
-int sc_width (void);  /* from termsbr.c */
-
 /*
  * static prototypes
  */
@@ -89,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 == '-')
@@ -151,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 {