diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/bug-regex11.c | 4 | ||||
-rw-r--r-- | posix/bug-regex12.c | 4 | ||||
-rw-r--r-- | posix/tst-mmap.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/posix/bug-regex11.c b/posix/bug-regex11.c index 5c8179d675..d6fc4153e2 100644 --- a/posix/bug-regex11.c +++ b/posix/bug-regex11.c @@ -58,14 +58,14 @@ main (void) { char buf[500]; regerror (n, &re, buf, sizeof (buf)); - printf ("regcomp %d failed: %s\n", i, buf); + printf ("regcomp %zd failed: %s\n", i, buf); ret = 1; continue; } if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0)) { - printf ("regexec %d failed\n", i); + printf ("regexec %zd failed\n", i); ret = 1; regfree (&re); continue; diff --git a/posix/bug-regex12.c b/posix/bug-regex12.c index 2464991ad4..d5b5ef106e 100644 --- a/posix/bug-regex12.c +++ b/posix/bug-regex12.c @@ -52,7 +52,7 @@ main (void) { char buf[500]; regerror (n, &re, buf, sizeof (buf)); - printf ("regcomp %d failed: %s\n", i, buf); + printf ("regcomp %zd failed: %s\n", i, buf); ret = 1; continue; } @@ -60,7 +60,7 @@ main (void) if (! regexec (&re, tests[i].string, tests[i].nmatch, tests[i].nmatch ? rm : NULL, 0)) { - printf ("regexec %d incorrectly matched\n", i); + printf ("regexec %zd incorrectly matched\n", i); ret = 1; } diff --git a/posix/tst-mmap.c b/posix/tst-mmap.c index e4db364301..355a784124 100644 --- a/posix/tst-mmap.c +++ b/posix/tst-mmap.c @@ -167,7 +167,7 @@ main (void) for (c = ps; c < ps + 1000; ++c) if (ptr[c - ps] != '0' + (c % 10)) { - printf ("wrong data mapped at offset %d\n", c); + printf ("wrong data mapped at offset %zd\n", c); result = 1; } } @@ -187,7 +187,7 @@ main (void) for (c = ps; c < ps + 1000; ++c) if (ptr[c - ps] != '0' + (c % 10)) { - printf ("wrong data mapped at offset %d\n", c); + printf ("wrong data mapped at offset %zd\n", c); result = 1; } } |