aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/sync.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-07-06 20:05:03 +0000
committerChristopher Faylor <me@cgf.cx>2005-07-06 20:05:03 +0000
commit0c55f6ed60a0b1b9c6ac47f8726191e48f90c052 (patch)
treebddbfd9cddc82d403fbfaa4f619e8f14c47159fe /winsup/cygwin/sync.cc
parentdee9edd9ed9fbe5f97367ad04d4203729e02ca9a (diff)
downloadnewlib-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.zip
newlib-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.gz
newlib-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.bz2
Eliminate (void) cast on standalone function calls throughout.
Diffstat (limited to 'winsup/cygwin/sync.cc')
-rw-r--r--winsup/cygwin/sync.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sync.cc b/winsup/cygwin/sync.cc
index 797deed..e539e38 100644
--- a/winsup/cygwin/sync.cc
+++ b/winsup/cygwin/sync.cc
@@ -135,12 +135,12 @@ muto::release ()
if (!--visits)
{
tls = 0; /* We were the last unlocker. */
- (void) InterlockedExchange (&sync, 0); /* Reset trigger. */
+ InterlockedExchange (&sync, 0); /* Reset trigger. */
/* This thread had incremented waiters but had never decremented it.
Decrement it now. If it is >= 0 then there are possibly other
threads waiting for the lock, so trigger bruteforce. */
if (InterlockedDecrement (&waiters) >= 0)
- (void) SetEvent (bruteforce); /* Wake up one of the waiting threads */
+ SetEvent (bruteforce); /* Wake up one of the waiting threads */
else if (*name == '!')
{
CloseHandle (bruteforce); /* If *name == '!' and there are no