aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
Diffstat (limited to 'projects')
-rw-r--r--projects/hsm/mgmt-keystore.c5
1 files 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);
}
}