diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-08 18:23:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-08 18:23:59 +0000 |
commit | f9657e88fabd682d176d1205a8a03677228eaab3 (patch) | |
tree | 230ff2993235bf5da46b4f60079ec76f0092475c | |
parent | cb4d04cd6133e8fe7af1bd7d193683e9d93189b4 (diff) | |
download | glibc-f9657e88fabd682d176d1205a8a03677228eaab3.tar.gz glibc-f9657e88fabd682d176d1205a8a03677228eaab3.tar.xz glibc-f9657e88fabd682d176d1205a8a03677228eaab3.zip |
Update.
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.
-rw-r--r-- | nptl/ChangeLog | 14 | ||||
-rw-r--r-- | nptl/tst-barrier2.c | 2 | ||||
-rw-r--r-- | nptl/tst-cancel4.c | 2 | ||||
-rw-r--r-- | nptl/tst-cond4.c | 2 | ||||
-rw-r--r-- | nptl/tst-cond6.c | 2 | ||||
-rw-r--r-- | nptl/tst-detach1.c | 1 | ||||
-rw-r--r-- | nptl/tst-rwlock4.c | 2 | ||||
-rw-r--r-- | nptl/tst-rwlock6.c | 2 | ||||
-rw-r--r-- | nptl/tst-rwlock7.c | 2 | ||||
-rw-r--r-- | nptl/tst-sem3.c | 4 | ||||
-rw-r--r-- | nptl/tst-spin2.c | 2 | ||||
-rw-r--r-- | nptl/tst-umask1.c | 2 |
12 files changed, 26 insertions, 11 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 1ff2800a83..a6ce1e979f 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -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. diff --git a/nptl/tst-barrier2.c b/nptl/tst-barrier2.c index 7b9b5cd939..b147ae1bfb 100644 --- a/nptl/tst-barrier2.c +++ b/nptl/tst-barrier2.c @@ -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; diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c index 3cedf6920f..08ab3291f5 100644 --- a/nptl/tst-cancel4.c +++ b/nptl/tst-cancel4.c @@ -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) diff --git a/nptl/tst-cond4.c b/nptl/tst-cond4.c index cc888e0ce4..071528df0e 100644 --- a/nptl/tst-cond4.c +++ b/nptl/tst-cond4.c @@ -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; diff --git a/nptl/tst-cond6.c b/nptl/tst-cond6.c index 21821442ac..02a0bdfbd1 100644 --- a/nptl/tst-cond6.c +++ b/nptl/tst-cond6.c @@ -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); diff --git a/nptl/tst-detach1.c b/nptl/tst-detach1.c index 867b4c6981..7b27f6ead8 100644 --- a/nptl/tst-detach1.c +++ b/nptl/tst-detach1.c @@ -20,6 +20,7 @@ #include <pthread.h> #include <stdio.h> #include <stdlib.h> +#include <unistd.h> static void * diff --git a/nptl/tst-rwlock4.c b/nptl/tst-rwlock4.c index b3dddd9d33..1fb47f7cd3 100644 --- a/nptl/tst-rwlock4.c +++ b/nptl/tst-rwlock4.c @@ -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; diff --git a/nptl/tst-rwlock6.c b/nptl/tst-rwlock6.c index 86cd10b5ee..eb14c0f778 100644 --- a/nptl/tst-rwlock6.c +++ b/nptl/tst-rwlock6.c @@ -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; diff --git a/nptl/tst-rwlock7.c b/nptl/tst-rwlock7.c index 4d7af6ca77..2045aa2cb2 100644 --- a/nptl/tst-rwlock7.c +++ b/nptl/tst-rwlock7.c @@ -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; diff --git a/nptl/tst-sem3.c b/nptl/tst-sem3.c index 7d3f68f019..91b9f08779 100644 --- a/nptl/tst-sem3.c +++ b/nptl/tst-sem3.c @@ -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); diff --git a/nptl/tst-spin2.c b/nptl/tst-spin2.c index 84f0064c17..95a9293316 100644 --- a/nptl/tst-spin2.c +++ b/nptl/tst-spin2.c @@ -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; diff --git a/nptl/tst-umask1.c b/nptl/tst-umask1.c index 42d2e6810c..bd7531901d 100644 --- a/nptl/tst-umask1.c +++ b/nptl/tst-umask1.c @@ -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); |