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.
This commit is contained in:
Ulrich Drepper 2003-04-08 18:23:59 +00:00
parent cb4d04cd61
commit f9657e88fa
12 changed files with 26 additions and 11 deletions

View 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.

View 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;

View 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)

View 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;

View 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);

View File

@ -20,6 +20,7 @@
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
static void *

View 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;

View 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;

View 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;

View 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);

View 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;

View 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);