* dtable.cc (dtable::find_unused_handle): Avoid coercion.

This commit is contained in:
Christopher Faylor 2002-06-24 21:14:04 +00:00
parent e08a611849
commit e773b7cf30
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-06-24 Christopher Faylor <cgf@redhat.com>
* dtable.cc (dtable::find_unused_handle): Avoid coercion.
2002-06-24 Christopher Faylor <cgf@redhat.com>
* dtable.cc (fhandler_base::dup2): Cleanup. Ensure that lock is turned

View File

@ -167,10 +167,9 @@ int
dtable::find_unused_handle (int start)
{
AssertResourceOwner (LOCK_FD_LIST, READ_LOCK);
do
{
for (int i = start; i < (int) size; i++)
for (size_t i = start; i < size; i++)
/* See if open -- no need for overhead of not_open */
if (fds[i] == NULL)
return i;