freemyipod r313 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r312‎ | r313 | r314 >
Date:23:42, 2 December 2010
Author:theseven
Status:new
Tags:
Comment:
iLoader: Fix some yellow (implicit signedness casts)
Modified paths:
  • /apps/iloader/main.c (modified) (history)

Diff [purge]

Index: apps/iloader/main.c
@@ -167,11 +167,11 @@
168168 {
169169 if (bootflash_is_memmapped)
170170 {
171 - if (!ucl_decompress(bootflash_getaddr("ildrcfg "), size, config, &size))
 171+ if (!ucl_decompress(bootflash_getaddr("ildrcfg "), size, config, (uint32_t*)&size))
172172 goto configfound;
173173 }
174174 else if (bootflash_read("ildrcfg ", backdrop, 0, size) == size)
175 - if (!ucl_decompress(backdrop, size, config, &size))
 175+ if (!ucl_decompress(backdrop, size, config, (uint32_t*)&size))
176176 goto configfound;
177177 }
178178 else if (bootflash_read("ildrcfg ", config, 0, size) == size)
@@ -216,7 +216,7 @@
217217 if (bootflash_is_memmapped)
218218 {
219219 if (ucl_decompress(bootflash_getaddr(filename), size,
220 - (void*)config[pc + 1], &size))
 220+ (void*)config[pc + 1], (uint32_t*)&size))
221221 pc = errhandler;
222222 else pc += 3;
223223 }
@@ -223,7 +223,7 @@
224224 else if (bootflash_read(filename, (void*)(0x09e00000 - size), 0, size) == size)
225225 {
226226 if (ucl_decompress((void*)(0x09e00000 - size), size,
227 - (void*)config[pc + 1], &size))
 227+ (void*)config[pc + 1], (uint32_t*)&size))
228228 pc = errhandler;
229229 else pc += 3;
230230 }
@@ -452,7 +452,8 @@
453453 execfirmware((void*)config[pc + 1]);
454454
455455 case 0x14:
456 - if (ucl_decompress((void*)config[pc + 1], size, (void*)config[pc + 2], &size))
 456+ if (ucl_decompress((void*)config[pc + 1], size,
 457+ (void*)config[pc + 2], (uint32_t*)&size))
457458 pc = errhandler;
458459 else pc += 3;
459460 break;