1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Small tweaks to fix GCC 68k compiler warnings.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14913 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-04-03 10:53:24 +00:00
parent 3096691d75
commit a18f415374
3 changed files with 6 additions and 20 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: complex_headers.h,v 1.1 2005-04-03 10:22:47 obarthel Exp $
* $Id: complex_headers.h,v 1.2 2005-04-03 10:53:24 obarthel Exp $
*
* :ts=4
*
@ -42,7 +42,7 @@
/****************************************************************************/
#if defined(FLOATING_POINT_SUPPORT) && defined(__GNUC__)
#if defined(FLOATING_POINT_SUPPORT) && defined(__GNUC__) && ((__STDC_VERSION__ + 0) >= 199901L)
/****************************************************************************/
@ -61,7 +61,7 @@
/****************************************************************************/
#endif /* FLOATING_POINT_SUPPORT && __GNUC__ */
#endif /* FLOATING_POINT_SUPPORT && __GNUC__ && __STDC_VERSION__ */
/****************************************************************************/

View File

@ -1,5 +1,5 @@
/*
* $Id: uio_readv.c,v 1.1 2005-04-03 10:22:47 obarthel Exp $
* $Id: uio_readv.c,v 1.2 2005-04-03 10:53:24 obarthel Exp $
*
* :ts=4
*
@ -83,13 +83,6 @@ readv(int file_descriptor,const struct iovec *iov,int vec_count)
/* Check for overflow. An expensive test, but better to do it here than in the read loop. */
for(i = 0, total_num_bytes_read = 0 ; i < vec_count ; i++)
{
/* Paraoia... */
if(iov[i].iov_len < 0)
{
__set_errno(EINVAL);
goto out;
}
total_num_bytes_read += iov[i].iov_len;
if(total_num_bytes_read < 0) /* Rollover. */
{
@ -135,7 +128,7 @@ readv(int file_descriptor,const struct iovec *iov,int vec_count)
total_num_bytes_read += num_bytes_read;
part_num_bytes_read += num_bytes_read;
if(part_num_bytes_read < iov[i].iov_len)
if((size_t)part_num_bytes_read < iov[i].iov_len)
{
/* Avoid busy-waiting for more data here? */
continue;

View File

@ -1,5 +1,5 @@
/*
* $Id: uio_writev.c,v 1.1 2005-04-03 10:22:47 obarthel Exp $
* $Id: uio_writev.c,v 1.2 2005-04-03 10:53:24 obarthel Exp $
*
* :ts=4
*
@ -83,13 +83,6 @@ writev(int file_descriptor,const struct iovec *iov,int vec_count)
here than in the write loop. */
for(i = 0, total_num_bytes_written = 0 ; i < vec_count ; i++)
{
if(iov[i].iov_len < 0)
{
/* Paraoia... */
__set_errno(EINVAL);
goto out;
}
total_num_bytes_written += iov[i].iov_len;
if(total_num_bytes_written < 0) /* Rollover. */
{