summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2019-02-03 22:48:03 +0100
committerRoland Hieber <rhi@pengutronix.de>2019-02-07 12:34:16 +0100
commit338b9962e28a41bc31815f8fcc7bfc23ae94ecd4 (patch)
treeeed2c72fe7aacbd5c7fd14cfe37c00a16fc19943
parente210e3b79be8059029ac3fd2ff404bba55f7a5c6 (diff)
downloaddt-utils-338b9962e28a41bc31815f8fcc7bfc23ae94ecd4.tar.gz
dt-utils-338b9962e28a41bc31815f8fcc7bfc23ae94ecd4.tar.xz
keystore-blob: remove unused variable
By cleaning up the code the compiler does not emit the following warning anymore: src/keystore-blob.c: In function 'keystore_get_secret': src/keystore-blob.c:25:15: warning: unused variable 'modifier' [-Wunused-variable] char *blob, *modifier, *payload; ^~~~~~~~ Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r--src/keystore-blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keystore-blob.c b/src/keystore-blob.c
index 028dd8b..f71ff5d 100644
--- a/src/keystore-blob.c
+++ b/src/keystore-blob.c
@@ -22,7 +22,7 @@ static struct state *state;
int keystore_get_secret(const char *name, const unsigned char **key, int *key_len)
{
FILE *fp;
- char *blob, *modifier, *payload;
+ char *blob, *payload;
u8 *blob_bin, *payload_bin;
ssize_t len;
int fd, ret;