X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fximg.c;h=159ba516489896d81fbde48aeeaf4d96edc43e97;hb=1b6ae82a5abb4cbedb0d6cb262526173f4efa486;hp=a9481004f0369ebf95ebf4b6ee9f6fd25b806f9d;hpb=88c7a0a8c2ce6b503ff5d5509effb2a9f844993e;p=oweals%2Fu-boot.git diff --git a/cmd/ximg.c b/cmd/ximg.c index a9481004f0..159ba51648 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c @@ -13,15 +13,18 @@ */ #include #include +#include #include #include #include +#include #include #include #if defined(CONFIG_BZIP2) #include #endif #include +#include #include #ifndef CONFIG_SYS_XIMG_LEN @@ -30,9 +33,9 @@ #endif static int -do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) +do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - ulong addr = load_addr; + ulong addr = image_load_addr; ulong dest = 0; ulong data, len; int verify;