diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-13 13:07:20 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-13 13:07:20 +1030 |
commit | e7bbe366c926765264d32f36cb093ca12a36d1cf (patch) | |
tree | 8ced328c82afe73bba307ea0b87d38959b5ca8c3 | |
parent | c80910455a974389d23f59e841e916427473c99e (diff) |
Fix for 64-bit (thanks to Tim T)
-rw-r--r-- | ccan/read_write_all/test/run-write_all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/read_write_all/test/run-write_all.c b/ccan/read_write_all/test/run-write_all.c index 379ff923..ab21cd31 100644 --- a/ccan/read_write_all/test/run-write_all.c +++ b/ccan/read_write_all/test/run-write_all.c @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) if (!read_all(p2c[0], buffer+1, sizeof(buffer)-1)) exit(3); if (memchr(buffer, 0, sizeof(buffer))) { - fprintf(stderr, "buffer has 0 at offset %i\n", + fprintf(stderr, "buffer has 0 at offset %ti\n", memchr(buffer, 0, sizeof(buffer)) - (void *)buffer); exit(4); } |