HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33799
Change subject: src/lib/hexdump: Use size_t for lengths ......................................................................
src/lib/hexdump: Use size_t for lengths
Change-Id: I29a7ae8c499bb1e8ab7c8741b2dfb7663d82a362 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/lib/hexdump.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/33799/1
diff --git a/src/lib/hexdump.c b/src/lib/hexdump.c index 1e689e3..511dedd 100644 --- a/src/lib/hexdump.c +++ b/src/lib/hexdump.c @@ -19,14 +19,13 @@
void hexdump(const void *memory, size_t length) { - int i; + size_t i, j; uint8_t *line; int all_zero = 0; int all_one = 0; size_t num_bytes;
for (i = 0; i < length; i += 16) { - int j; num_bytes = MIN(length - i, 16); line = ((uint8_t *)memory) + i;