aboutsummaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorHannu Lounento <hannu.lounento@vaisala.com>2021-10-18 08:49:03 +0300
committerSimon Glass <sjg@chromium.org>2021-10-31 12:26:44 -0600
commit2289629f27f743003254d0a31ae9ed6175d1dd63 (patch)
tree944350cd74c594738ce444a5c1adbc88fe9936d3 /include/image.h
parent50bff6a6f86669a8652e2bf271eeb04f77911274 (diff)
downloadu-boot-2289629f27f743003254d0a31ae9ed6175d1dd63.zip
u-boot-2289629f27f743003254d0a31ae9ed6175d1dd63.tar.gz
u-boot-2289629f27f743003254d0a31ae9ed6175d1dd63.tar.bz2
image.h: make image_sign_info.fit point to const
The data blob apparently does not need to be modified through the fit field of the image_sign_info struct so make it point to const to avoid the need to cast away constness in functions that assign a pointer to const data to the field. fit_image_setup_verify already had to cast away constness as it assigned a const void * argument to the field. The cast can now be removed. Signed-off-by: Hannu Lounento <hannu.lounento@vaisala.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 34d13ad..fd662e7 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1159,7 +1159,7 @@ struct image_sign_info {
const char *keydir; /* Directory conaining keys */
const char *keyname; /* Name of key to use */
const char *keyfile; /* Filename of private or public key */
- void *fit; /* Pointer to FIT blob */
+ const void *fit; /* Pointer to FIT blob */
int node_offset; /* Offset of signature node */
const char *name; /* Algorithm name */
struct checksum_algo *checksum; /* Checksum algorithm information */