From 346f3a9016179e2ee492bb7d58ce790a6ce18c84 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 25 Jun 2003 11:14:37 +0000 Subject: [PATCH] * posix/tst-nanosleep.c: Include for nanosleep declaration. * stdio-common/tst-fphex.c: Fix format string. * posix/tst-nanosleep.c: Include for nanosleep declaration. * stdio-common/tst-fphex.c: Fix format string. --- ChangeLog | 5 +++++ posix/tst-nanosleep.c | 1 + stdio-common/tst-fphex.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index feb19a7e48..d0accd10cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-06-25 Andreas Jaeger + * posix/tst-nanosleep.c: Include for nanosleep + declaration. + + * stdio-common/tst-fphex.c: Fix format string. + * posix/transbug.c: Include for memset and strlen declarations. diff --git a/posix/tst-nanosleep.c b/posix/tst-nanosleep.c index a087db86ff..0fa0135bc6 100644 --- a/posix/tst-nanosleep.c +++ b/posix/tst-nanosleep.c @@ -20,6 +20,7 @@ #include #include #include +#include /* Test that nanosleep() does sleep. */ diff --git a/stdio-common/tst-fphex.c b/stdio-common/tst-fphex.c index aca2c0500d..212e4ed9ec 100644 --- a/stdio-common/tst-fphex.c +++ b/stdio-common/tst-fphex.c @@ -39,7 +39,7 @@ do_test (int argc, char **argv) int n = snprintf (buf, sizeof buf, t->fmt, t->value); if (n != strlen (t->expect) || strcmp (buf, t->expect) != 0) { - printf ("%s\tExpected \"%s\" (%u)\n\tGot \"%s\" (%d, %u)\n", + printf ("%s\tExpected \"%s\" (%Zu)\n\tGot \"%s\" (%d, %Zu)\n", t->fmt, t->expect, strlen (t->expect), buf, n, strlen (buf)); result = 1; }