summaryrefslogtreecommitdiff
path: root/bin/domainname/domainname.c
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/domainname/domainname.c
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/domainname/domainname.c')
-rw-r--r--bin/domainname/domainname.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/domainname/domainname.c b/bin/domainname/domainname.c
index 633db145d59..8ff5bb51421 100644
--- a/bin/domainname/domainname.c
+++ b/bin/domainname/domainname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: domainname.c,v 1.3 1996/08/02 12:40:54 deraadt Exp $ */
+/* $OpenBSD: domainname.c,v 1.4 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: domainname.c,v 1.7 1995/03/21 09:04:22 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: domainname.c,v 1.3 1996/08/02 12:40:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: domainname.c,v 1.4 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -56,6 +56,8 @@ static char rcsid[] = "$OpenBSD: domainname.c,v 1.3 1996/08/02 12:40:54 deraadt
#include <string.h>
#include <unistd.h>
+extern char *__progname;
+
void usage __P((void));
int
@@ -91,7 +93,6 @@ main(argc, argv)
void
usage()
{
-
- (void)fprintf(stderr, "usage: domainname [name-of-domain]\n");
+ (void)fprintf(stderr, "usage: %s [name-of-domain]\n", __progname);
exit(1);
}