summaryrefslogtreecommitdiffstats
path: root/include/bbu.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-29 20:37:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-30 08:33:54 +0100
commitb5526c403c41ffa70a917df3841cd5e77b23d1f3 (patch)
tree608cba584e6b0fa4292fbb0bb98c91145581d2f2 /include/bbu.h
parent83ff71fcee4daabfd74ff31e5612f74c4996ec5c (diff)
downloadbarebox-b5526c403c41ffa70a917df3841cd5e77b23d1f3.tar.gz
barebox-b5526c403c41ffa70a917df3841cd5e77b23d1f3.tar.xz
imd: Make all pointers into image const
The IMD code should be readonly and never modify any pointers. Make all pointers const so that const pointers can be passed in to IMD. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r--include/bbu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbu.h b/include/bbu.h
index 54434b03e0..a3824e11cf 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -16,7 +16,7 @@ struct bbu_data {
const char *devicefile;
size_t len;
const char *handler_name;
- struct imd_header *imd_data;
+ const struct imd_header *imd_data;
};
struct bbu_handler {