diff options
-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 1ff2800..a6ce1e9 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 7b9b5cd..b147ae1 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 3cedf69..08ab329 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 cc888e0..071528d 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 2182144..02a0bdf 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 867b4c6..7b27f6e 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 b3dddd9..1fb47f7 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 86cd10b..eb14c0f 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 4d7af6c..2045aa2 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 7d3f68f..91b9f08 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 84f0064..95a9293 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 42d2e68..bd75319 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); |