]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 8 Apr 2003 18:23:59 +0000 (18:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 8 Apr 2003 18:23:59 +0000 (18:23 +0000)
2003-04-08  Ulrich Drepper  <drepper@redhat.com>

* tst-barrier2.c: Eliminate warnings.
* tst-cancel4.c: Likewise.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-detach1.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-rwlock6.c: Likewise.
* tst-rwlock7.c: Likewise.
* tst-sem3.c: Likewise.
* tst-spin2.c: Likewise.
* tst-umask1.c: Likewise.

12 files changed:
nptl/ChangeLog
nptl/tst-barrier2.c
nptl/tst-cancel4.c
nptl/tst-cond4.c
nptl/tst-cond6.c
nptl/tst-detach1.c
nptl/tst-rwlock4.c
nptl/tst-rwlock6.c
nptl/tst-rwlock7.c
nptl/tst-sem3.c
nptl/tst-spin2.c
nptl/tst-umask1.c

index 1ff2800a83d880e9d7ba5fd28969202e33f20053..a6ce1e979f6cf8110c64fa93e572556a772b1c53 100644 (file)
@@ -1,3 +1,17 @@
+2003-04-08  Ulrich Drepper  <drepper@redhat.com>
+
+       * tst-barrier2.c: Eliminate warnings.
+       * tst-cancel4.c: Likewise.
+       * tst-cond4.c: Likewise.
+       * tst-cond6.c: Likewise.
+       * tst-detach1.c: Likewise.
+       * tst-rwlock4.c: Likewise.
+       * tst-rwlock6.c: Likewise.
+       * tst-rwlock7.c: Likewise.
+       * tst-sem3.c: Likewise.
+       * tst-spin2.c: Likewise.
+       * tst-umask1.c: Likewise.
+
 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
 
        * pthread_detach.c (pthread_detach): Fix test for invalid TID.
index 7b9b5cd9394608ca3bb6c1955fd779630adbb308..b147ae1bfb0ebf801c493fc64123779105a42f3f 100644 (file)
@@ -64,7 +64,7 @@ do_test (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       return 1;
index 3cedf6920fe539bc6cda81fea9b2cc446a7a5c1f..08ab3291f54eefceb0f10896f8132405e1035629 100644 (file)
@@ -399,7 +399,7 @@ do_test (void)
       exit (1);
     }
 
-  int cnt;
+  size_t cnt;
   for (cnt = 0; cnt < ntest_tf; ++cnt)
     {
       if (pthread_barrier_init (&b2, NULL, tests[cnt].nb) != 0)
index cc888e0ce42bde980690e6547fb15de71134e54d..071528df0ed195b10f636bebbe7501585ce901ec 100644 (file)
@@ -67,7 +67,7 @@ do_test (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       return 1;
index 21821442acac710451935c2f30ff51ee83b9699e..02a0bdfbd18001ba37765c2ad93f9d5d70362a9f 100644 (file)
@@ -68,7 +68,7 @@ do_test (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       exit (1);
index 867b4c698109ef525bd13c492d1833d0e0761671..7b27f6ead8a1f3f62d1e5a96090f436d75ef0114 100644 (file)
@@ -20,6 +20,7 @@
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 
 static void *
index b3dddd9d33d4c6f5719bb30d0ce6d92b9b8fdf03..1fb47f7cd3543b644b28cbb603bc8ab2c0e1dc83 100644 (file)
@@ -64,7 +64,7 @@ do_test (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       return 1;
index 86cd10b5ee85d4c1d762b9faede46d68229bed69..eb14c0f7784eadd54bd54780bdf1719ee59de99f 100644 (file)
@@ -107,7 +107,7 @@ tf (void *arg)
 static int
 do_test (void)
 {
-  int cnt;
+  size_t cnt;
   for (cnt = 0; cnt < sizeof (kind) / sizeof (kind[0]); ++cnt)
     {
       pthread_rwlock_t r;
index 4d7af6ca77b2b275f99e1d3ef56552d10e6728bf..2045aa2cb252df6983e5d940175f97d39dc52230 100644 (file)
@@ -101,7 +101,7 @@ tf (void *arg)
 static int
 do_test (void)
 {
-  int cnt;
+  size_t cnt;
   for (cnt = 0; cnt < sizeof (kind) / sizeof (kind[0]); ++cnt)
     {
       pthread_rwlock_t r;
index 7d3f68f01973b0e38a9ccefee4cb8598af9e44fd..91b9f0877939cb4d31ce53cc266a313a12c0b5f1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -54,7 +54,7 @@ main (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       exit (1);
index 84f0064c17a316b85728f922cc5d622355be3b2d..95a92933169be5ef3eade7fc46647d373e6d4745 100644 (file)
@@ -61,7 +61,7 @@ do_test (void)
   memset (data, '\0', ps);
 
   /* Write the data to the file.  */
-  if (write (fd, data, ps) != ps)
+  if (write (fd, data, ps) != (ssize_t) ps)
     {
       puts ("short write");
       return 1;
index 42d2e6810cfbfe7014b1c8c91997f6776f47b377..bd7531901d0f52d61e9285e2b3b854de0868d30b 100644 (file)
@@ -44,7 +44,7 @@ static int
 work (const char *fname, int mask)
 {
   int result = 0;
-  int i;
+  size_t i;
   for (i = 0; i < nfcts; ++i)
     {
       remove (fname);