summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2014-07-28 04:17:07 +0000
committerbcook <bcook@openbsd.org>2014-07-28 04:17:07 +0000
commit8c18f9d1cadf24075dd09758c1bc2ec0d6c660f5 (patch)
treea9f6533ea888b87f10289f1387a6c87e4326a4b1
parentturn of -Werror, unless you are sure both gcc work... (diff)
downloadwireguard-openbsd-8c18f9d1cadf24075dd09758c1bc2ec0d6c660f5.tar.xz
wireguard-openbsd-8c18f9d1cadf24075dd09758c1bc2ec0d6c660f5.zip
remove non-portable __progname extern from arc4random unit test.
ok @deraadt
-rw-r--r--regress/lib/libc/arc4random-fork/arc4random-fork.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regress/lib/libc/arc4random-fork/arc4random-fork.c b/regress/lib/libc/arc4random-fork/arc4random-fork.c
index 7152e5a3e75..c1e87d21c9e 100644
--- a/regress/lib/libc/arc4random-fork/arc4random-fork.c
+++ b/regress/lib/libc/arc4random-fork/arc4random-fork.c
@@ -69,8 +69,7 @@ fillbuf(Buf *buf)
static void
usage()
{
- extern const char *__progname;
- errx(1, "usage: %s [-bp]", __progname);
+ errx(1, "usage: arc4random-fork [-bp]");
}
static pid_t