summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-08-10 20:57:47 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-08-10 20:57:47 +0000
commit53add5d6e06e57a7c06ba8ed5722b7787bc540d4 (patch)
treef6e04f00322ce13ff7bb3001f4eec210028e98cd /sbin
parent5e5402afa8cdceb902f755bd7411ca3f23ff1731 (diff)
fix usage() string; use __progname
Diffstat (limited to 'sbin')
-rw-r--r--sbin/savecore/savecore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index 672f80bdeb3..b8c464a5bcd 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.12 1998/07/13 02:11:23 millert Exp $ */
+/* $OpenBSD: savecore.c,v 1.13 1998/08/10 20:57:46 mickey Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
@@ -672,6 +672,8 @@ Write(fd, bp, size)
void
usage()
{
- fprintf(stderr, "usage: savecore [-cfvz] [-N system] directory");
+ extern char *__progname;
+ fprintf(stderr, "usage: %s [-cfvz] [-N system] directory\n",
+ __progname);
exit(1);
}