1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

use __progname where needed

ok otto@
This commit is contained in:
jasper 2007-10-12 19:52:06 +00:00
parent 03b73008c9
commit 0a786bd126
3 changed files with 8 additions and 4 deletions

View File

@ -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 */

View File

@ -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

View File

@ -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