]> sourceware.org Git - glibc.git/commitdiff
* posix/tst-nanosleep.c: Include <time.h> for nanosleep
authorAndreas Jaeger <aj@suse.de>
Wed, 25 Jun 2003 11:14:37 +0000 (11:14 +0000)
committerAndreas Jaeger <aj@suse.de>
Wed, 25 Jun 2003 11:14:37 +0000 (11:14 +0000)
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.

ChangeLog
posix/tst-nanosleep.c
stdio-common/tst-fphex.c

index feb19a7e486ac0ba2fe88d74c6b0391707ac29ee..d0accd10cc946e172d91273456d2237ab1257797 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
        declarations.
 
index a087db86ff2ded4002eede7988428c8f73c9fa1d..0fa0135bc6a56de92e85f4c3afc702094fb28db5 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/time.h>
+#include <time.h>
 
 
 /* Test that nanosleep() does sleep.  */
index aca2c0500d341bc6bfce1e7a0b2ab338feb77662..212e4ed9ec24b7f03917625d1c4c516245c58370 100644 (file)
@@ -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;
        }
This page took 0.0456530000000001 seconds and 5 git commands to generate.