summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_serial.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/fhandler_serial.cc
parentdee9edd9ed9fbe5f97367ad04d4203729e02ca9a (diff)
downloadcygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.gz
cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.bz2
cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.zip
Eliminate (void) cast on standalone function calls throughout.
Diffstat (limited to 'winsup/cygwin/fhandler_serial.cc')
-rw-r--r--winsup/cygwin/fhandler_serial.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index 4c587c957..3c6a3bcdc 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -53,7 +53,7 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen)
io_status.hEvent);
if (!overlapped_armed)
{
- (void) SetCommMask (get_handle (), EV_RXCHAR);
+ SetCommMask (get_handle (), EV_RXCHAR);
ResetEvent (io_status.hEvent);
}
@@ -200,7 +200,7 @@ err:
void
fhandler_serial::init (HANDLE f, DWORD flags, mode_t bin)
{
- (void) open (flags, bin & (O_BINARY | O_TEXT));
+ open (flags, bin & (O_BINARY | O_TEXT));
}
int
@@ -218,14 +218,14 @@ fhandler_serial::open (int flags, mode_t mode)
res = 1;
- (void) SetCommMask (get_handle (), EV_RXCHAR);
+ SetCommMask (get_handle (), EV_RXCHAR);
uninterruptible_io (true); // Handled explicitly in read code
overlapped_setup ();
memset (&to, 0, sizeof (to));
- (void) SetCommTimeouts (get_handle (), &to);
+ SetCommTimeouts (get_handle (), &to);
/* Reset serial port to known state of 9600-8-1-no flow control
on open for better behavior under Win 95.
@@ -295,7 +295,7 @@ fhandler_serial::open (int flags, mode_t mode)
int
fhandler_serial::close ()
{
- (void) ForceCloseHandle (io_status.hEvent);
+ ForceCloseHandle (io_status.hEvent);
return fhandler_base::close ();
}