summaryrefslogtreecommitdiff
path: root/bin/rmail
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/rmail
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/rmail')
-rw-r--r--bin/rmail/rmail.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c
index 496f015256f..31badbfee8b 100644
--- a/bin/rmail/rmail.c
+++ b/bin/rmail/rmail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rmail.c,v 1.10 2000/01/22 20:24:53 deraadt Exp $ */
+/* $OpenBSD: rmail.c,v 1.11 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: rmail.c,v 1.8 1995/09/07 06:51:50 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95";
#else
-static char rcsid[] = "$OpenBSD: rmail.c,v 1.10 2000/01/22 20:24:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rmail.c,v 1.11 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -87,6 +87,8 @@ static char rcsid[] = "$OpenBSD: rmail.c,v 1.10 2000/01/22 20:24:53 deraadt Exp
# define MAX(a, b) ((a) < (b) ? (b) : (a))
#endif
+extern char *__progname;
+
void err __P((int, const char *, ...));
void usage __P((void));
@@ -358,6 +360,7 @@ main(argc, argv)
void
usage()
{
- (void)fprintf(stderr, "usage: rmail [-T] [-D domain] user ...\n");
+ (void)fprintf(stderr, "usage: %s [-T] [-D domain] user ...\n",
+ __progname);
exit(EX_USAGE);
}