summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2019-11-29 16:14:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-12-02 11:02:21 +0100
commita07e6e1a54f272f13abeb89ccb6cf77ed20aba48 (patch)
tree274dea7e9007de0e079ce9cd459a441ab906b769
parent0ae74f9519eba2c58e1912c14c2db9e1e40d711a (diff)
downloadbarebox-a07e6e1a54f272f13abeb89ccb6cf77ed20aba48.tar.gz
barebox-a07e6e1a54f272f13abeb89ccb6cf77ed20aba48.tar.xz
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 <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--commands/keystore.c2
1 files changed, 1 insertions, 1 deletions
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) {