diff options
Diffstat (limited to 'libio')
-rw-r--r-- | libio/tst-fgetws.c | 6 | ||||
-rw-r--r-- | libio/tst_swprintf.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libio/tst-fgetws.c b/libio/tst-fgetws.c index 66fb9d1d8e..1e29332743 100644 --- a/libio/tst-fgetws.c +++ b/libio/tst-fgetws.c @@ -91,7 +91,7 @@ main (int argc, char *argv[]) { printf ("Return Value: %p\n", ret); for (i = 0; i < wcslen (wcs) + 1; i++) - printf (" wcs[%d] = %04x", i, (unsigned int)wcs[i]); + printf (" wcs[%zd] = %04x", i, (unsigned int)wcs[i]); printf ("\n"); result = 1; } @@ -127,7 +127,7 @@ main (int argc, char *argv[]) printf ("Return Value: %p\n", ret); for (i = 0; i < wcslen (wcs) + 1; i++) - printf (" wcs[%d] = 0x%04x", i, (unsigned int)wcs[i]); + printf (" wcs[%zd] = 0x%04x", i, (unsigned int)wcs[i]); printf ("\n"); for (i = 0; il_str2[i] != '\n'; ++i) @@ -172,7 +172,7 @@ main (int argc, char *argv[]) { printf ("Return Value: %p\n", ret); for (i = 0; i < wcslen (wcs) + 1; i++) - printf (" wcs[%d] = 0x%04x", i, (unsigned int)wcs[i]); + printf (" wcs[%zd] = 0x%04x", i, (unsigned int)wcs[i]); printf ("\n"); } diff --git a/libio/tst_swprintf.c b/libio/tst_swprintf.c index 4dadd58741..e4bd7f022a 100644 --- a/libio/tst_swprintf.c +++ b/libio/tst_swprintf.c @@ -28,7 +28,7 @@ main (int argc, char *argv[]) n = swprintf (buf, nbuf, L"Hello %s", "world"); if (n != 11) { - printf ("incorrect return value: %d instead of 11\n", n); + printf ("incorrect return value: %zd instead of 11\n", n); result = 1; } else if (wcscmp (buf, L"Hello world") != 0) @@ -41,7 +41,7 @@ main (int argc, char *argv[]) n = swprintf (buf, nbuf, L"Is this >%g< 3.1?", 3.1); if (n != 18) { - printf ("incorrect return value: %d instead of 18\n", n); + printf ("incorrect return value: %zd instead of 18\n", n); result = 1; } else if (wcscmp (buf, L"Is this >3.1< 3.1?") != 0) |