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",
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",
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",
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");
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");