Mercurial > flash_v2
diff packages/redboot/current/src/flash.c @ 1679:b548ac5af76c
* src/flash.c (find_free): fix endless loop when removing a
collapsed chunk from chunk table. Found by Laurent Gonzalez
(fis_load): Fixed a compiler warning.
| author | asl |
|---|---|
| date | Fri, 25 Jun 2004 15:49:43 +0000 |
| parents | 1bf3513602bc |
| children | bbdd4a302a64 |
line wrap: on
line diff
--- a/packages/redboot/current/src/flash.c +++ b/packages/redboot/current/src/flash.c @@ -547,6 +547,7 @@ find_free(struct free_chunk *chunks) // This free chunk has collapsed while (idx < (num_chunks-1)) { chunks[idx] = chunks[idx+1]; + idx++; } num_chunks--; } @@ -1076,7 +1077,7 @@ fis_load(int argc, char *argv[]) if (cksum != img->file_cksum) { diag_printf("** Warning - checksum failure. stored: 0x%08lx, computed: 0x%08lx\n", img->file_cksum, cksum); - entry_address = NO_MEMORY; + entry_address = (unsigned long)NO_MEMORY; } } #endif
