summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2016-03-14 14:44:03 +0000
committermmcc <mmcc@openbsd.org>2016-03-14 14:44:03 +0000
commitdb0001810350a95455423db5035e8868b0c0c0e3 (patch)
tree1b9eafdd60c2d49f0c22e26d5afa796d3b3d28c5
parentCorrect the value of SRT_ENDTAG: it was documented incorrectly in early (diff)
downloadwireguard-openbsd-db0001810350a95455423db5035e8868b0c0c0e3.tar.xz
wireguard-openbsd-db0001810350a95455423db5035e8868b0c0c0e3.zip
replace __progname with getprogname(3)
from Michal Mazurek, ok tb@
-rw-r--r--bin/df/df.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 7f4bb3ae636..7eb8fc31bd5 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.57 2016/03/07 01:19:46 mmcc Exp $ */
+/* $OpenBSD: df.c,v 1.58 2016/03/14 14:44:03 mmcc Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -47,8 +47,6 @@
#include <unistd.h>
#include <util.h>
-extern char *__progname;
-
int bread(int, off_t, void *, int);
static void bsdprint(struct statfs *, long, int);
char *getmntpt(char *);
@@ -458,6 +456,6 @@ usage(void)
{
(void)fprintf(stderr,
"usage: %s [-hiklnP] [-t type] [[file | file_system] ...]\n",
- __progname);
+ getprogname());
exit(1);
}