From a07e6e1a54f272f13abeb89ccb6cf77ed20aba48 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 29 Nov 2019 16:14:33 +0100 Subject: commands: keystore: use correct type for s_len Fixes the follwing warning: "passing argument 2 of 'read_file_2' from incompatible pointer type". Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- commands/keystore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/keystore.c b/commands/keystore.c index 52c4be2639..4f6a7ef190 100644 --- a/commands/keystore.c +++ b/commands/keystore.c @@ -15,7 +15,7 @@ static int do_keystore(int argc, char *argv[]) const char *file = NULL; char *secret_str = NULL; void *secret; - int s_len; + size_t s_len; while ((opt = getopt(argc, argv, "rs:f:")) > 0) { switch (opt) { -- cgit v1.2.3