summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-08-19 11:42:56 +0200
committerTom Rix <Tom.Rix@windriver.com>2009-10-03 09:04:20 -0500
commitc928d1dc89abb1c2bea1b0ae4ccf0cee43cf11b3 (patch)
tree9def5e6f2333ac67b25a4a710f531cc13e494048 /tools
parentc7138920b85ac05c7601105dd9961142995191cf (diff)
downloadu-boot-imx-c928d1dc89abb1c2bea1b0ae4ccf0cee43cf11b3.zip
u-boot-imx-c928d1dc89abb1c2bea1b0ae4ccf0cee43cf11b3.tar.gz
u-boot-imx-c928d1dc89abb1c2bea1b0ae4ccf0cee43cf11b3.tar.bz2
tools/mkimage: fix compiler warnings, use "const"
This fixes some compiler warnings: tools/default_image.c:141: warning: initialization from incompatible pointer type tools/fit_image.c:202: warning: initialization from incompatible pointer type and changes to code to use "const" attributes in a few places where it's appropriate. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.h b/tools/mkimage.h
index 120970f..96f2ef8 100644
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -104,7 +104,7 @@ struct image_type_params {
*/
int (*verify_header) (unsigned char *, int, struct mkimage_params *);
/* Prints image information abstracting from image header */
- void (*print_header) (void *);
+ void (*print_header) (const void *);
/*
* The header or image contents need to be set as per image type to
* be generated using this callback function.