From b6e02ef2971ebc1dbe67c7417376e3657c47aa13 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 23 Dec 2016 17:40:30 -0500 Subject: Don't wrap key number in "keystore show keys". --- projects/hsm/mgmt-keystore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/hsm/mgmt-keystore.c b/projects/hsm/mgmt-keystore.c index 6ee6cf3..d04099b 100644 --- a/projects/hsm/mgmt-keystore.c +++ b/projects/hsm/mgmt-keystore.c @@ -183,8 +183,9 @@ static int show_keys(struct cli_def *cli, const char *title, const hal_key_flags hal_key_type_t type; hal_error_t status; hal_uuid_t uuids[50]; - unsigned n; + int count = 0; int done = 0; + unsigned n; cli_print(cli, title); @@ -248,7 +249,7 @@ static int show_keys(struct cli_def *cli, const char *title, const hal_key_flags } cli_print(cli, "Key %2i, name %s, type %s, curve %s, flags 0x%lx", - i, key_name, type_name, curve_name, (unsigned long) flags); + count++, key_name, type_name, curve_name, (unsigned long) flags); } } -- cgit v1.2.3