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>2001-10-29 08:28:24 +0300
committerChristopher Faylor <me@cgf.cx>2001-10-29 08:28:24 +0300
commit711ded6d2866e00b42e4d7c1136b201944e16578 (patch)
tree4813c3e9737e7bf1f90abfc758a8e3d67e071ff0 /winsup/cygwin/fhandler_serial.cc
parentaa9d50a1c15b5aa4f4a192b9a146a377de4d42cb (diff)
* fhandler.h (fhandler_serial::fhandler_serial): Change to only accept unit
argument. * fhandler_serial.cc (fhandler_serial::fhandler_serial): Ditto. (fhandler_serial::open): Avoid else when previous clause is a return(). * path.cc (get_devn): Alias /dev/ttyS0 -> /dev/com1, etc. (get_device_number): Reallow standalone "com1" as a valid name for /dev/com1.
Diffstat (limited to 'winsup/cygwin/fhandler_serial.cc')
-rw-r--r--winsup/cygwin/fhandler_serial.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index f0b1de876..a52dbb4ba 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -24,8 +24,8 @@ details. */
/**********************************************************************/
/* fhandler_serial */
-fhandler_serial::fhandler_serial (DWORD devtype, int unit)
- : fhandler_base (devtype, unit), vmin_ (0), vtime_ (0), pgrp_ (myself->pgid)
+fhandler_serial::fhandler_serial (int unit)
+ : fhandler_base (FH_SERIAL, unit), vmin_ (0), vtime_ (0), pgrp_ (myself->pgid)
{
set_need_fork_fixup ();
}
@@ -219,8 +219,8 @@ fhandler_serial::open (path_conv *, int flags, mode_t mode)
if (!(res = this->fhandler_base::open (NULL, flags, mode)))
return 0;
- else
- res = 1;
+
+ res = 1;
(void) SetCommMask (get_handle (), EV_RXCHAR);