mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-15 15:06:04 -04:00
cmd_ximg.c: fix error: 'i' undeclared
Fix compile error: cmd_ximg.c: In function 'do_imgextract': cmd_ximg.c:234: error: 'i' undeclared (first use in this function) cmd_ximg.c:234: error: (Each undeclared identifier is reported only once cmd_ximg.c:234: error: for each function it appears in.) Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
9b208ece0a
commit
5f566f4547
@ -225,20 +225,25 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
#if defined(CONFIG_BZIP2)
|
#if defined(CONFIG_BZIP2)
|
||||||
case IH_COMP_BZIP2:
|
case IH_COMP_BZIP2:
|
||||||
printf (" Uncompressing part %d ... ", part);
|
{
|
||||||
/*
|
int i;
|
||||||
* If we've got less than 4 MB of malloc() space,
|
|
||||||
* use slower decompression algorithm which requires
|
printf (" Uncompressing part %d ... ", part);
|
||||||
* at most 2300 KB of memory.
|
/*
|
||||||
*/
|
* If we've got less than 4 MB of malloc()
|
||||||
i = BZ2_bzBuffToBuffDecompress
|
* space, use slower decompression algorithm
|
||||||
((char*)ntohl(hdr->ih_load),
|
* which requires at most 2300 KB of memory.
|
||||||
&unc_len, (char *)data, len,
|
*/
|
||||||
CONFIG_SYS_MALLOC_LEN < (4096 * 1024), 0);
|
i = BZ2_bzBuffToBuffDecompress(
|
||||||
if (i != BZ_OK) {
|
(char*)ntohl(hdr->ih_load),
|
||||||
printf ("BUNZIP2 ERROR %d - "
|
&unc_len, (char *)data, len,
|
||||||
"image not loaded\n", i);
|
CONFIG_SYS_MALLOC_LEN < (4096 * 1024),
|
||||||
return 1;
|
0);
|
||||||
|
if (i != BZ_OK) {
|
||||||
|
printf ("BUNZIP2 ERROR %d - "
|
||||||
|
"image not loaded\n", i);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_BZIP2 */
|
#endif /* CONFIG_BZIP2 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user