aboutsummaryrefslogtreecommitdiff
path: root/tools/image-host.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2022-01-14 10:21:17 +0100
committerTom Rini <trini@konsulko.com>2022-01-24 10:35:10 -0500
commit4550ce9be01dcdf451d74b0f6263d0c43e1377f1 (patch)
treeb3d5e1a4de3c1898ed87740dadf68063f89d3376 /tools/image-host.c
parente44d2f5df9baa9b604df4eaa4d42f89657170598 (diff)
downloadu-boot-4550ce9be01dcdf451d74b0f6263d0c43e1377f1.zip
u-boot-4550ce9be01dcdf451d74b0f6263d0c43e1377f1.tar.gz
u-boot-4550ce9be01dcdf451d74b0f6263d0c43e1377f1.tar.bz2
image-fit: Make string of algo parameter constant
Modifications would be invalid. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/image-host.c')
-rw-r--r--tools/image-host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/image-host.c b/tools/image-host.c
index 945571f..5b814ce 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -63,7 +63,7 @@ static int fit_image_process_hash(void *fit, const char *image_name,
uint8_t value[FIT_MAX_HASH_LEN];
const char *node_name;
int value_len;
- char *algo;
+ const char *algo;
int ret;
node_name = fit_get_name(fit, noffset, NULL);
@@ -160,7 +160,7 @@ static int fit_image_setup_sig(struct image_sign_info *info,
const char *engine_id)
{
const char *node_name;
- char *algo_name;
+ const char *algo_name;
const char *padding_name;
node_name = fit_get_name(fit, noffset, NULL);