diff options
author | Christopher Faylor <me@cgf.cx> | 2003-11-25 22:59:37 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-11-25 22:59:37 +0000 |
commit | b5aa10cda81085a78e1b121b26ace8b43950692a (patch) | |
tree | 83abbf1b36d8158b66a460fac5d1d52cf3644ddd /winsup/cygwin/thread.cc | |
parent | 8861377a2d5549a913b12ba91c77968fd4a20589 (diff) | |
download | cygnal-b5aa10cda81085a78e1b121b26ace8b43950692a.tar.gz cygnal-b5aa10cda81085a78e1b121b26ace8b43950692a.tar.bz2 cygnal-b5aa10cda81085a78e1b121b26ace8b43950692a.zip |
more white space
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 0c3a6a418..fc2570c6d 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -1680,7 +1680,7 @@ semaphore::semaphore (const char *sem_name, int oflag, mode_t mode, set_security_attribute (mode, &sa, alloca (4096), 4096); this->win32_obj_id = ::CreateSemaphore (&sa, value, LONG_MAX, sem_name); if (!this->win32_obj_id) - magic = 0; + magic = 0; if (GetLastError () == ERROR_ALREADY_EXISTS && (oflag & O_EXCL)) { __seterrno (); @@ -1708,7 +1708,7 @@ semaphore::semaphore (const char *sem_name, int oflag, mode_t mode, magic = 0; } else - strcpy (name, sem_name); + strcpy (name, sem_name); } semaphores.insert (this); @@ -1746,7 +1746,7 @@ semaphore::_getvalue (int *sval) *sval = 0; break; default: - set_errno (EAGAIN); + set_errno (EAGAIN); return -1; } return 0; @@ -1776,9 +1776,9 @@ semaphore::_timedwait (const struct timespec *abstime) if (__check_invalid_read_ptr (abstime, sizeof *abstime)) { /* According to SUSv3, abstime need not be checked for validity, - if the semaphore can be locked immediately. */ + if the semaphore can be locked immediately. */ if (!_trywait ()) - return 0; + return 0; set_errno (EINVAL); return -1; } |