aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-07 18:50:08 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-07 18:50:08 +0000
commite45cfaf9e4e0f40c26f6aaccb6bd58ec18136928 (patch)
treef60e00d9873a8c2d50336221697aebf7c64e5e06
parentbffb89c23ae37611486bf0870dbf26d8cd6b9b38 (diff)
downloadnewlib-unlabeled-1.32.2.zip
newlib-unlabeled-1.32.2.tar.gz
newlib-unlabeled-1.32.2.tar.bz2
* fhandler_serial.cc (fhandler_serial::ioctl): Fix typo.github/unlabeled-1.32.2unlabeled-1.32.2
-rw-r--r--winsup/cygwin/fhandler_serial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index 2c8c27f..fd7abb8 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -388,7 +388,7 @@ fhandler_serial::ioctl (unsigned int cmd, void *buffer)
DWORD ev;
COMSTAT st;
- if (ClearCommError (get_handle (), &ev, &st))
+ if (!ClearCommError (get_handle (), &ev, &st))
{
__seterrno ();
res = -1;