summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-06-08 04:16:07 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-06-08 04:16:07 +0000
commit6e934407d41aab3068a4289d54e6fa79c71d83f2 (patch)
tree4bca18352a6c48e857a81603ec2d6abd14ed5449 /usr.bin
parent5c28958f761fcd40d7ac5d76378d6c61eca8bd58 (diff)
use getprogname
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/signify/signify.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c
index a4cb84ae9ea..9fe300ce5a4 100644
--- a/usr.bin/signify/signify.c
+++ b/usr.bin/signify/signify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signify.c,v 1.105 2015/12/04 11:05:22 tedu Exp $ */
+/* $OpenBSD: signify.c,v 1.106 2016/06/08 04:16:06 tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -70,8 +70,6 @@ struct sig {
uint8_t sig[SIGBYTES];
};
-extern char *__progname;
-
static void __dead
usage(const char *error)
{
@@ -84,7 +82,7 @@ usage(const char *error)
"\t%1$s -S [-e] [-x sigfile] -s seckey -m message\n"
#endif
"\t%1$s -V [-eq] [-x sigfile] -p pubkey -m message\n",
- __progname);
+ getprogname());
exit(1);
}