Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-26 01:59:37 +0300
committerChristopher Faylor <me@cgf.cx>2003-11-26 01:59:37 +0300
commitb5aa10cda81085a78e1b121b26ace8b43950692a (patch)
tree83abbf1b36d8158b66a460fac5d1d52cf3644ddd /winsup
parent8861377a2d5549a913b12ba91c77968fd4a20589 (diff)
more white space
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/thread.cc10
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;
}