From: tedu Date: Fri, 10 Jan 2014 04:36:58 +0000 (+0000) Subject: use a single positional argument instead of a creeping list of __progname X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=609c6d0630ff7695c00be8d88cde7d284de25ee8;p=openbsd use a single positional argument instead of a creeping list of __progname --- diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c index ec3c4a76316..53dd0931e3a 100644 --- a/usr.bin/signify/signify.c +++ b/usr.bin/signify/signify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signify.c,v 1.24 2014/01/10 04:34:24 tedu Exp $ */ +/* $OpenBSD: signify.c,v 1.25 2014/01/10 04:36:58 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst * @@ -72,14 +72,11 @@ usage(void) { fprintf(stderr, "usage:" #ifndef VERIFYONLY - "\t%s -G [-n] -p pubkey -s seckey\n" - "\t%s -I [-o sigfile] [-p pubkey] [-s seckey]\n" - "\t%s -S [-e] [-o sigfile] -s seckey message\n" -#endif - "\t%s -V [-e] [-o sigfile] -p pubkey message\n", -#ifndef VERIFYONLY - __progname, __progname, __progname, + "\t%1$s -G [-n] -p pubkey -s seckey\n" + "\t%1$s -I [-o sigfile] [-p pubkey] [-s seckey]\n" + "\t%1$s -S [-e] [-o sigfile] -s seckey message\n" #endif + "\t%1$s -V [-e] [-o sigfile] -p pubkey message\n", __progname); exit(1); }