* hinfo.cc (hinfo::find_unused_handle): Just check for table entry == NULL

since we are already bounds checked by default.
* thread.cc (ResourceLocks::Lock): Streamline this function since it is called
a lot.
(ReleaseResourceLock): Ditto.
This commit is contained in:
Christopher Faylor
2000-08-04 04:04:46 +00:00
parent e5dd88116a
commit 91892f50d9
4 changed files with 112 additions and 110 deletions

View File

@@ -391,7 +391,7 @@ _open (const char *unix_path, int flags, ...)
syscall_printf ("open (%s, %p)", unix_path, flags);
if (!check_null_empty_path_errno(unix_path))
{
SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," open ");
SetResourceLock(LOCK_FD_LIST, WRITE_LOCK|READ_LOCK, " open ");
/* check for optional mode argument */
va_start (ap, flags);