summaryrefslogtreecommitdiff
path: root/futility/cmd_show.c
diff options
context:
space:
mode:
Diffstat (limited to 'futility/cmd_show.c')
-rw-r--r--futility/cmd_show.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/futility/cmd_show.c b/futility/cmd_show.c
index aa0ac6bc..660bbcb2 100644
--- a/futility/cmd_show.c
+++ b/futility/cmd_show.c
@@ -579,15 +579,15 @@ static const char usage[] = "\n"
"%s"
"\n";
-static void print_help(const char *prog)
+static void print_help(int argc, char *argv[])
{
- if (strcmp(prog, "verify"))
- printf(usage, prog,
+ if (strcmp(argv[0], "verify"))
+ printf(usage, argv[0],
" public key (.vbpubk)\n",
" --strict "
"Fail unless all signatures are valid\n");
else
- printf(usage, prog, "",
+ printf(usage, argv[0], "",
"\nIt will fail unless all signatures are valid\n");
}
@@ -688,13 +688,13 @@ static int do_show(int argc, char *argv[])
}
if (errorcnt) {
- print_help(argv[0]);
+ print_help(argc, argv);
return 1;
}
if (argc - optind < 1) {
fprintf(stderr, "ERROR: missing input filename\n");
- print_help(argv[0]);
+ print_help(argc, argv);
return 1;
}