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

- Fixed to built properly.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15017 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-08-15 11:31:39 +00:00
parent b76ec2c143
commit 6aaa439593

View File

@ -1,5 +1,5 @@
/*
* $Id: socket_select.c,v 1.13 2005-08-15 10:43:54 obarthel Exp $
* $Id: socket_select.c,v 1.14 2005-08-15 11:31:39 obarthel Exp $
*
* :ts=4
*
@ -809,12 +809,14 @@ select(int num_fds,fd_set *read_fds,fd_set *write_fds,fd_set *except_fds,struct
{
if(FLAG_IS_SET(fd->fd_Flags,FDF_CACHE_POSITION))
{
if((ULONG)fib->fib_FileSize > fd->fd_Position)
/* Is there new data to read? */
if((ULONG)fib->fib_Size > fd->fd_Position)
got_input = TRUE;
}
else
{
if(fib->fib_FileSize != 0)
/* Does the pipe contain any data to read? */
if(fib->fib_Size != 0)
got_input = TRUE;
}
}
@ -989,12 +991,12 @@ select(int num_fds,fd_set *read_fds,fd_set *write_fds,fd_set *except_fds,struct
{
if(FLAG_IS_SET(fd->fd_Flags,FDF_CACHE_POSITION))
{
if((ULONG)fib->fib_FileSize > fd->fd_Position)
if((ULONG)fib->fib_Size > fd->fd_Position)
got_input = TRUE;
}
else
{
if(fib->fib_FileSize != 0)
if(fib->fib_Size != 0)
got_input = TRUE;
}
}