]> git.marmaro.de Git - mmh/blobdiff - uip/dp.c
Added "-d --" to invocation of ls when figuring out what files
[mmh] / uip / dp.c
index 687d4c449236e22d77d481e4f9b0a5c58d12b56b..a66beed827644763d04cb46572cedef496b1c6ed 100644 (file)
--- a/uip/dp.c
+++ b/uip/dp.c
@@ -2,7 +2,9 @@
 /*
  * dp.c -- parse dates 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>
@@ -34,11 +36,6 @@ static struct format *fmt;
 
 static int dat[5];
 
-/*
- * prototypes
- */
-int sc_width (void);  /* from termsbr.c */
-
 /*
  * static prototypes
  */
@@ -77,10 +74,10 @@ main (int argc, char **argv)
                    snprintf (buf, sizeof(buf), "%s [switches] dates ...",
                        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 == '-')
@@ -132,7 +129,8 @@ main (int argc, char **argv)
        status += process (dates[datep], width);
 
     context_save ();   /* save the context file */
-    return done (status);
+    done (status);
+    return 1;
 }