diff options
Diffstat (limited to 'futility/cmd_vbutil_key.c')
-rw-r--r-- | futility/cmd_vbutil_key.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/futility/cmd_vbutil_key.c b/futility/cmd_vbutil_key.c index e98066c1..9d2af87a 100644 --- a/futility/cmd_vbutil_key.c +++ b/futility/cmd_vbutil_key.c @@ -42,8 +42,6 @@ static const struct option long_opts[] = { static void print_help(int argc, char *argv[]) { - int i; - printf("\n" "Usage: " MYNAME " %s --pack <outfile> [PARAMETERS]\n" "\n" @@ -55,7 +53,7 @@ static void print_help(int argc, char *argv[]) " --algorithm <number> " "Signing algorithm to use with key:\n", argv[0]); - for (i = 0; i < VB2_ALG_COUNT; i++) { + for (enum vb2_crypto_algorithm i = 0; i < VB2_ALG_COUNT; i++) { printf(" %d = (%s)\n", i, vb2_get_crypto_algorithm_name(i)); } @@ -80,7 +78,7 @@ static int do_pack(const char *infile, const char *outfile, uint32_t algorithm, struct vb2_packed_key *pubkey = vb2_read_packed_keyb(infile, algorithm, version); if (pubkey) { - if (0 != vb2_write_packed_key(outfile, pubkey)) { + if (vb2_write_packed_key(outfile, pubkey)) { ERROR("vbutil_key: Error writing key.\n"); free(pubkey); return 1; |