summaryrefslogtreecommitdiff
path: root/bin/date
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-09-06 13:29:09 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-09-06 13:29:09 +0000
commite9adfbcaf16f3287027630e6f8926cbf5195af9f (patch)
treeb20ad65ef5726147335786dc24cc1d1a00d5c7f3 /bin/date
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index 05525d0c963..8a949caaeac 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: date.c,v 1.17 2001/03/26 15:22:16 millert Exp $ */
+/* $OpenBSD: date.c,v 1.18 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: date.c,v 1.17 2001/03/26 15:22:16 millert Exp $";
+static char rcsid[] = "$OpenBSD: date.c,v 1.18 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -66,6 +66,8 @@ static char rcsid[] = "$OpenBSD: date.c,v 1.17 2001/03/26 15:22:16 millert Exp $
#include "extern.h"
+extern char *__progname;
+
time_t tval;
int retval, nflag;
@@ -254,7 +256,9 @@ static void
usage()
{
(void)fprintf(stderr,
- "usage: date [-nu] [-d dst] [-r seconds] [-t west] [+format]\n");
- (void)fprintf(stderr, " [[[[[[cc]yy]mm]dd]HH]MM[.SS]]\n");
+ "usage: %s [-nu] [-d dst] [-r seconds] [-t west] [+format]\n",
+ __progname);
+ (void)fprintf(stderr,
+ "%-*s[[[[[[cc]yy]mm]dd]HH]MM[.SS]]\n", strlen(__progname) + 8, "");
exit(1);
}