]> git.saurik.com Git - minimal.git/commitdiff
Small issues with hexdump warnings on different platforms.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 1 Jul 2008 16:51:25 +0000 (16:51 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 1 Jul 2008 16:51:25 +0000 (16:51 +0000)
hexdump.h

index 5f36144973478f878fed822ea47f4796cf79a6e1..a8df7d8a0dfcfd8d2795985c189603c6fc4c7944 100644 (file)
--- a/hexdump.h
+++ b/hexdump.h
@@ -47,11 +47,11 @@ _disused static char hexchar(uint8_t value) {
 #define HexWidth_ 12
 
 _disused static void hexdump(const char *mark, const uint8_t *data, size_t size) {
-    int i = 0, j;
+    size_t i = 0, j;
 
     while (i != size) {
         if (i % HexWidth_ == 0)
-            printf("[%s] 0x%.3x:", mark, i);
+            printf("[%s] 0x%.3zx:", mark, i);
 
         printf(" %.2x", data[i]);