diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-10-12 19:52:07 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-10-12 19:52:07 +0000 |
commit | fdccb3924af2aadc5987351383f2eb2d94aa6898 (patch) | |
tree | a1dc9d8368a1b732b9f96d8c4a5ad49be6602b4a /usr.bin/gzsig | |
parent | 7bd60afb8f35fcbfc74b138b25bd5905d2e6f26e (diff) |
use __progname where needed
ok otto@
Diffstat (limited to 'usr.bin/gzsig')
-rw-r--r-- | usr.bin/gzsig/extern.h | 2 | ||||
-rw-r--r-- | usr.bin/gzsig/sign.c | 5 | ||||
-rw-r--r-- | usr.bin/gzsig/verify.c | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/gzsig/extern.h b/usr.bin/gzsig/extern.h index afbc6c4f11c..ce310bb6b1e 100644 --- a/usr.bin/gzsig/extern.h +++ b/usr.bin/gzsig/extern.h @@ -42,4 +42,6 @@ int sign_passwd_cb(char *buf, int size, int rwflag, void *u); void sign_usage(void); void verify_usage(void); +extern char *__progname; /* from crt0.o */ + #endif /* EXTERN_H */ diff --git a/usr.bin/gzsig/sign.c b/usr.bin/gzsig/sign.c index 795add21f0f..8e196a2d0b0 100644 --- a/usr.bin/gzsig/sign.c +++ b/usr.bin/gzsig/sign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sign.c,v 1.8 2007/09/11 15:47:17 gilles Exp $ */ +/* $OpenBSD: sign.c,v 1.9 2007/10/12 19:52:06 jasper Exp $ */ /* * sign.c @@ -185,7 +185,8 @@ embed_signature(struct key *key, FILE *fin, FILE *fout) void sign_usage(void) { - fprintf(stderr, "Usage: gzsig sign [-q] [-f secret_file] privkey [file ...]\n"); + fprintf(stderr, "Usage: %s sign [-q] [-f secret_file] privkey [file ...]\n", + __progname); } int diff --git a/usr.bin/gzsig/verify.c b/usr.bin/gzsig/verify.c index 02454635930..9063887c313 100644 --- a/usr.bin/gzsig/verify.c +++ b/usr.bin/gzsig/verify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: verify.c,v 1.6 2006/04/17 09:36:56 moritz Exp $ */ +/* $OpenBSD: verify.c,v 1.7 2007/10/12 19:52:06 jasper Exp $ */ /* * verify.c @@ -144,7 +144,8 @@ verify_signature(struct key *key, FILE *fin) void verify_usage(void) { - fprintf(stderr, "Usage: gzsig verify [-q] [-f secret_file] pubkey [file ...]\n"); + fprintf(stderr, "Usage: %s verify [-q] [-f secret_file] pubkey [file ...]\n", + __progname); } void |