diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-04 08:04:46 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-04 08:04:46 +0400 |
commit | 91892f50d9f2582c92ebe833fd39b65252ca3eae (patch) | |
tree | 0e8e84acbadc2b2ea57bafb606db642f0f083f1a /winsup/cygwin/syscalls.cc | |
parent | e5dd88116a080a254c30a8949ddc0b44063e719b (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index ed20df418..5698a9b72 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -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); |