ccan_tokenizer: 64-bit compile fixes.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Oct 2010 02:09:21 +0000 (12:39 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Oct 2010 02:09:21 +0000 (12:39 +1030)
%zu for size_t printf.

ccan/ccan_tokenizer/test/run.c

index 8b16fe084c3fd87b95ab375e89c8f2f23a02bdcc..7ff03da6da83900f000ddaee3536b10d05f4ddda 100644 (file)
@@ -147,7 +147,7 @@ static void test_read_cstring(void) {
                                queue_skip(mq);
                }
                if (i<e)
-                       printf("Item %u is incorrect\n", i);
+                       printf("Item %zu is incorrect\n", i);
                ok(i==e, "Is message queue correct?");
                ok(!queue_count(mq), "Message queue should be empty now.");
        }
@@ -685,7 +685,7 @@ static void test_scan_number_single(const char *str_pipes,
                return;
        }
        if (sn.dots_found != dots_found) {
-               fail("%s : sn.dots_found is %d; should be %d", str_pipes,
+               fail("%s : sn.dots_found is %zu; should be %zu", str_pipes,
                        sn.dots_found, dots_found);
                return;
        }