1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Wolfgang Denk
2009-08-19 11:42:56 +02:00
parent 89a4d6b12f
commit 3a2003f61e
3 changed files with 38 additions and 37 deletions

View File

@@ -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.