[PATCH 4/6] bbu: Make pointer to image const

Sascha Hauer s.hauer at pengutronix.de
Tue Jan 30 00:46:55 PST 2018


Make pointer to image in bbu data const so that we can put
const pointers into that.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 include/bbu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/bbu.h b/include/bbu.h
index a3824e11cf..def568e498 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -11,7 +11,7 @@ struct bbu_data {
 #define BBU_FLAG_YES	(1 << 1)
 	unsigned long flags;
 	int force;
-	void *image;
+	const void *image;
 	const char *imagefile;
 	const char *devicefile;
 	size_t len;
-- 
2.15.1




More information about the barebox mailing list