summaryrefslogtreecommitdiff
path: root/bin/df
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/df
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/df')
-rw-r--r--bin/df/df.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 2a34575b417..29c549c7b75 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.29 2001/07/09 22:37:56 millert Exp $ */
+/* $OpenBSD: df.c,v 1.30 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -49,7 +49,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: df.c,v 1.29 2001/07/09 22:37:56 millert Exp $";
+static char rcsid[] = "$OpenBSD: df.c,v 1.30 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -66,6 +66,8 @@ static char rcsid[] = "$OpenBSD: df.c,v 1.29 2001/07/09 22:37:56 millert Exp $";
#include <string.h>
#include <unistd.h>
+extern char *__progname;
+
int bread __P((int, off_t, void *, int));
char *getmntpt __P((char *));
void bsdprint __P((struct statfs *, long, int));
@@ -532,6 +534,8 @@ bread(rfd, off, buf, cnt)
void
usage()
{
- (void)fprintf(stderr, "usage: df [-hiklnP] [-t type] [file | file_system ...]\n");
+ (void)fprintf(stderr,
+ "usage: %s [-hiklnP] [-t type] [file | file_system ...]\n",
+ __progname);
exit(1);
}