X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/197f95940cc0860683e6988352f721e6603f9339..c2a2ca7d8d72c5a8bdadcd6f2c4dcf3c314a1066:/uip/dp.c diff --git a/uip/dp.c b/uip/dp.c index a9bc90f1..4e9c5cb8 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -2,12 +2,14 @@ /* * 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 #include -#include +#include #define NDATES 100 @@ -26,7 +28,7 @@ static struct swit switches[] = { #define VERSIONSW 3 { "version", 0 }, #define HELPSW 4 - { "help", 4 }, + { "help", 0 }, { NULL, 0 } }; @@ -34,11 +36,6 @@ static struct format *fmt; static int dat[5]; -/* - * prototypes - */ -int sc_width (void); /* from termsbr.c */ - /* * static prototypes */ @@ -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; }