diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2022-01-14 10:21:17 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-24 10:35:10 -0500 |
commit | 4550ce9be01dcdf451d74b0f6263d0c43e1377f1 (patch) | |
tree | b3d5e1a4de3c1898ed87740dadf68063f89d3376 /boot/image-fit.c | |
parent | e44d2f5df9baa9b604df4eaa4d42f89657170598 (diff) | |
download | u-boot-4550ce9be01dcdf451d74b0f6263d0c43e1377f1.tar.gz u-boot-4550ce9be01dcdf451d74b0f6263d0c43e1377f1.tar.bz2 u-boot-4550ce9be01dcdf451d74b0f6263d0c43e1377f1.zip |
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 'boot/image-fit.c')
-rw-r--r-- | boot/image-fit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boot/image-fit.c b/boot/image-fit.c index f6594e065c..85a6f223c8 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -191,7 +191,7 @@ static void fit_image_print_data(const void *fit, int noffset, const char *p, const char *keyname; uint8_t *value; int value_len; - char *algo; + const char *algo; const char *padding; bool required; int ret, i; @@ -1063,11 +1063,11 @@ int fit_image_get_data_and_size(const void *fit, int noffset, * 0, on success * -1, on failure */ -int fit_image_hash_get_algo(const void *fit, int noffset, char **algo) +int fit_image_hash_get_algo(const void *fit, int noffset, const char **algo) { int len; - *algo = (char *)fdt_getprop(fit, noffset, FIT_ALGO_PROP, &len); + *algo = (const char *)fdt_getprop(fit, noffset, FIT_ALGO_PROP, &len); if (*algo == NULL) { fit_get_debug(fit, noffset, FIT_ALGO_PROP, len); return -1; @@ -1265,7 +1265,7 @@ static int fit_image_check_hash(const void *fit, int noffset, const void *data, { uint8_t value[FIT_MAX_HASH_LEN]; int value_len; - char *algo; + const char *algo; uint8_t *fit_value; int fit_value_len; int ignore; |