diff options
author | Christopher Faylor <me@cgf.cx> | 2005-07-06 20:05:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-07-06 20:05:03 +0000 |
commit | 0c55f6ed60a0b1b9c6ac47f8726191e48f90c052 (patch) | |
tree | bddbfd9cddc82d403fbfaa4f619e8f14c47159fe /winsup/cygwin/cygthread.cc | |
parent | dee9edd9ed9fbe5f97367ad04d4203729e02ca9a (diff) | |
download | cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.gz cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.bz2 cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.zip |
Eliminate (void) cast on standalone function calls throughout.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r-- | winsup/cygwin/cygthread.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index f96908c0e..80fa4546d 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -258,8 +258,8 @@ cygthread::terminate_thread () if (!inuse) goto force_notterminated; - (void) TerminateThread (h, 0); - (void) WaitForSingleObject (h, INFINITE); + TerminateThread (h, 0); + WaitForSingleObject (h, INFINITE); CloseHandle (h); if (!inuse || exiting) @@ -270,7 +270,7 @@ cygthread::terminate_thread () MEMORY_BASIC_INFORMATION m; memset (&m, 0, sizeof (m)); - (void) VirtualQuery (stack_ptr, &m, sizeof m); + VirtualQuery (stack_ptr, &m, sizeof m); if (!m.RegionSize) system_printf ("m.RegionSize 0? stack_ptr %p", stack_ptr); @@ -320,7 +320,7 @@ cygthread::detach (HANDLE sigwait) /* Lower our priority and give priority to the read thread */ HANDLE hth = GetCurrentThread (); LONG prio = GetThreadPriority (hth); - (void) ::SetThreadPriority (hth, THREAD_PRIORITY_BELOW_NORMAL); + ::SetThreadPriority (hth, THREAD_PRIORITY_BELOW_NORMAL); HANDLE w4[2]; unsigned n = 2; @@ -363,7 +363,7 @@ cygthread::detach (HANDLE sigwait) /* WAIT_OBJECT_0 means that the thread successfully read something, so wait for the cygthread to "terminate". */ if (res == WAIT_OBJECT_0) - (void) WaitForSingleObject (*this, INFINITE); + WaitForSingleObject (*this, INFINITE); else { /* Thread didn't terminate on its own, so maybe we have to @@ -378,7 +378,7 @@ cygthread::detach (HANDLE sigwait) set_sig_errno (EINTR); thread_was_reset = true; } - (void) ::SetThreadPriority (hth, prio); + ::SetThreadPriority (hth, prio); } thread_printf ("%s returns %d, id %p", sigwait ? "WFMO" : "WFSO", @@ -395,7 +395,7 @@ cygthread::detach (HANDLE sigwait) { ResetEvent (*this); /* Mark the thread as available by setting inuse to zero */ - (void) InterlockedExchange (&inuse, 0); + InterlockedExchange (&inuse, 0); } } return signalled; |