* dtable.cc (dtable::find_unused_handle): Avoid coercion.
This commit is contained in:
parent
e08a611849
commit
e773b7cf30
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user