+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.
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;
exit (1);
}
- int cnt;
+ size_t cnt;
for (cnt = 0; cnt < ntest_tf; ++cnt)
{
if (pthread_barrier_init (&b2, NULL, tests[cnt].nb) != 0)
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;
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);
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
static 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;
static int
do_test (void)
{
- int cnt;
+ size_t cnt;
for (cnt = 0; cnt < sizeof (kind) / sizeof (kind[0]); ++cnt)
{
pthread_rwlock_t r;
static int
do_test (void)
{
- int cnt;
+ size_t cnt;
for (cnt = 0; cnt < sizeof (kind) / sizeof (kind[0]); ++cnt)
{
pthread_rwlock_t r;
-/* 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.
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);
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;
work (const char *fname, int mask)
{
int result = 0;
- int i;
+ size_t i;
for (i = 0; i < nfcts; ++i)
{
remove (fname);