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
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-06-06 09:02:13 +0400
committerChristopher Faylor <me@cgf.cx>2011-06-06 09:02:13 +0400
commitb86f999af19e2ef688661a66c07420089425646a (patch)
treeb4d01ee69bf9c61cd94bc98520820608595a3a53 /winsup/cygwin/thread.cc
parentdaf7238603ffb7ed994ee492ed63620f6f919835 (diff)
whitespace elimination
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index f0f535101..59e412f00 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1403,7 +1403,7 @@ pthread_rwlock::rdlock ()
if (reader->n < ULONG_MAX)
++reader->n;
else
- errno = EAGAIN;
+ errno = EAGAIN;
goto DONE;
}
@@ -1546,7 +1546,7 @@ pthread_rwlock::unlock ()
goto DONE;
}
if (--reader->n > 0)
- goto DONE;
+ goto DONE;
remove_reader (reader);
delete reader;
@@ -2247,9 +2247,9 @@ pthread_attr_setstack (pthread_attr_t *attr, void *addr, size_t size)
if (!pthread_attr::is_good_object (attr))
return EINVAL;
if (addr == NULL)
- return EINVAL;
+ return EINVAL;
if (size < PTHREAD_STACK_MIN)
- return EINVAL;
+ return EINVAL;
(*attr)->stackaddr = addr;
(*attr)->stacksize = size;
return 0;
@@ -2272,7 +2272,7 @@ pthread_attr_setstackaddr (pthread_attr_t *attr, void *addr)
if (!pthread_attr::is_good_object (attr))
return EINVAL;
if (addr == NULL)
- return EINVAL;
+ return EINVAL;
(*attr)->stackaddr = addr;
return 0;
}
@@ -2294,7 +2294,7 @@ pthread_attr_setstacksize (pthread_attr_t *attr, size_t size)
if (!pthread_attr::is_good_object (attr))
return EINVAL;
if (size < PTHREAD_STACK_MIN)
- return EINVAL;
+ return EINVAL;
(*attr)->stacksize = size;
return 0;
}
@@ -2481,7 +2481,7 @@ pthread_getattr_np (pthread_t thread, pthread_attr_t *attr)
tbi = (PTHREAD_BASIC_INFORMATION) malloc (sizeof_tbi);
ret = NtQueryInformationThread (thread->win32_obj_id, ThreadBasicInformation,
- tbi, sizeof_tbi, NULL);
+ tbi, sizeof_tbi, NULL);
if (NT_SUCCESS (ret))
{
@@ -2493,7 +2493,7 @@ pthread_getattr_np (pthread_t thread, pthread_attr_t *attr)
else
{
debug_printf ("NtQueryInformationThread(ThreadBasicInformation), "
- "status %p", ret);
+ "status %p", ret);
(*attr)->stackaddr = thread->attr.stackaddr;
(*attr)->stacksize = thread->attr.stacksize;
}
@@ -3579,7 +3579,7 @@ semaphore::open (unsigned long long hash, LUID luid, int fd, int oflag,
semaphores.mx.lock ();
for (semaphore *sema = semaphores.head; sema; sema = sema->next)
if (sema->fd >= 0 && sema->hash == hash
- && sema->luid.HighPart == luid.HighPart
+ && sema->luid.HighPart == luid.HighPart
&& sema->luid.LowPart == sema->luid.LowPart)
{
wasopen = true;