summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/hexdump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/hexdump.c b/src/lib/hexdump.c
index 1e689e3e53..2c9e483d1d 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;
@@ -65,7 +64,7 @@ void hexdump(const void *memory, size_t length)
void hexdump32(char LEVEL, const void *d, size_t len)
{
- int count = 0;
+ size_t count = 0;
while (len > 0) {
if (count % 8 == 0) {