From 2b9737aa0756ce44b2f97ca3aa348a496c8769a9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 4 Jan 2005 07:55:25 +0000 Subject: [PATCH] Fix "%d"s that should be "%zu"s. --- grading/userprog/multi-child-fd.c | 2 +- grading/userprog/read-boundary.c | 2 +- grading/userprog/read-normal.c | 2 +- grading/userprog/write-boundary.c | 2 +- grading/userprog/write-normal.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/grading/userprog/multi-child-fd.c b/grading/userprog/multi-child-fd.c index 4a8c89f..50b5a50 100644 --- a/grading/userprog/multi-child-fd.c +++ b/grading/userprog/multi-child-fd.c @@ -24,7 +24,7 @@ main (void) byte_cnt = read (handle, actual, sizeof actual - 1); if (byte_cnt != sizeof actual - 1) - printf ("(multi-child-fd) fail: read() returned %d instead of %d\n", + printf ("(multi-child-fd) fail: read() returned %d instead of %zu\n", byte_cnt, sizeof actual - 1); else if (strcmp (sample, actual)) printf ("(multi-child-fd) fail: expected text differs from actual:\n%s", diff --git a/grading/userprog/read-boundary.c b/grading/userprog/read-boundary.c index 41c798e..1fd187f 100644 --- a/grading/userprog/read-boundary.c +++ b/grading/userprog/read-boundary.c @@ -30,7 +30,7 @@ main (void) byte_cnt = read (handle, actual_p, sizeof sample - 1); if (byte_cnt != sizeof sample - 1) - printf ("(read-boundary) fail: read() returned %d instead of %d\n", + printf ("(read-boundary) fail: read() returned %d instead of %zu\n", byte_cnt, sizeof sample - 1); else if (strcmp (sample, actual_p)) printf ("(read-boundary) fail: expected text differs from actual:\n%s", diff --git a/grading/userprog/read-normal.c b/grading/userprog/read-normal.c index 2e6f681..9a63083 100644 --- a/grading/userprog/read-normal.c +++ b/grading/userprog/read-normal.c @@ -17,7 +17,7 @@ main (void) byte_cnt = read (handle, actual, sizeof actual - 1); if (byte_cnt != sizeof actual - 1) - printf ("(read-normal) fail: read() returned %d instead of %d\n", + printf ("(read-normal) fail: read() returned %d instead of %zu\n", byte_cnt, sizeof actual - 1); else if (strcmp (sample, actual)) printf ("(read-normal) fail: expected text differs from actual:\n%s", diff --git a/grading/userprog/write-boundary.c b/grading/userprog/write-boundary.c index a31dad0..860e2a2 100644 --- a/grading/userprog/write-boundary.c +++ b/grading/userprog/write-boundary.c @@ -30,7 +30,7 @@ main (void) byte_cnt = write (handle, sample_p, sizeof sample - 1); if (byte_cnt != sizeof sample - 1) - printf ("(write-boundary) fail: write() returned %d instead of %d\n", + printf ("(write-boundary) fail: write() returned %d instead of %zu\n", byte_cnt, sizeof sample - 1); printf ("(write-boundary) end\n"); diff --git a/grading/userprog/write-normal.c b/grading/userprog/write-normal.c index b2e96e8..145d0bf 100644 --- a/grading/userprog/write-normal.c +++ b/grading/userprog/write-normal.c @@ -18,7 +18,7 @@ main (void) byte_cnt = write (handle, sample, sizeof sample - 1); if (byte_cnt != sizeof sample - 1) - printf ("(write-normal) fail: write() returned %d instead of %d\n", + printf ("(write-normal) fail: write() returned %d instead of %zu\n", byte_cnt, sizeof sample - 1); printf ("(write-normal) end\n"); -- 2.30.2