projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added -mts switch to post, send, and whom. Replaced test-sendmail-pipe
[mmh]
/
uip
/
dp.c
diff --git
a/uip/dp.c
b/uip/dp.c
index
ab44141
..
a66beed
100644
(file)
--- a/
uip/dp.c
+++ b/
uip/dp.c
@@
-2,12
+2,14
@@
/*
* dp.c -- parse dates 822-style
*
/*
* 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>
#include <h/fmt_scan.h>
*/
#include <h/mh.h>
#include <h/fmt_scan.h>
-#include <zotnet/tws/tws.h>
+#include <h/tws.h>
#define NDATES 100
#define NDATES 100
@@
-35,11
+37,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);
* static prototypes
*/
static int process (char *, int);
@@
-77,10
+74,10
@@
main (int argc, char **argv)
snprintf (buf, sizeof(buf), "%s [switches] dates ...",
invo_name);
print_help (buf, switches, 1);
snprintf (buf, sizeof(buf), "%s [switches] dates ...",
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 == '-')
@@
-132,7
+129,8
@@
main (int argc, char **argv)
status += process (dates[datep], width);
context_save (); /* save the context file */
status += process (dates[datep], width);
context_save (); /* save the context file */
- return done (status);
+ done (status);
+ return 1;
}
}