* posix/tst-nanosleep.c: Include <time.h> for nanosleep

declaration.
	* stdio-common/tst-fphex.c: Fix format string.
	* posix/tst-nanosleep.c: Include <time.h> for nanosleep
	declaration.
	
	* stdio-common/tst-fphex.c: Fix format string.
This commit is contained in:
Andreas Jaeger 2003-06-25 11:14:37 +00:00
parent fa4a36fdff
commit 346f3a9016
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2003-06-25 Andreas Jaeger <aj@suse.de> 2003-06-25 Andreas Jaeger <aj@suse.de>
* posix/tst-nanosleep.c: Include <time.h> for nanosleep
declaration.
* stdio-common/tst-fphex.c: Fix format string.
* posix/transbug.c: Include <string.h> for memset and strlen * posix/transbug.c: Include <string.h> for memset and strlen
declarations. declarations.

View File

@ -20,6 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h>
/* Test that nanosleep() does sleep. */ /* Test that nanosleep() does sleep. */

View File

@ -39,7 +39,7 @@ do_test (int argc, char **argv)
int n = snprintf (buf, sizeof buf, t->fmt, t->value); int n = snprintf (buf, sizeof buf, t->fmt, t->value);
if (n != strlen (t->expect) || strcmp (buf, t->expect) != 0) 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)); t->fmt, t->expect, strlen (t->expect), buf, n, strlen (buf));
result = 1; result = 1;
} }