summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-08-02 19:26:32 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-08-02 19:26:32 +0000
commitab9913e31f09cb9587a78e4dc5a58a5622d9fbb9 (patch)
treec58c63765017b31480ee03117524f66d15d9acc6
parent52f846534e8450c57a3f882b60374876d674b819 (diff)
downloadATCD-ab9913e31f09cb9587a78e4dc5a58a5622d9fbb9.tar.gz
*** empty log message ***
-rw-r--r--ace/TTY_IO.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ace/TTY_IO.cpp b/ace/TTY_IO.cpp
index f257bcf2c57..064b338d78c 100644
--- a/ace/TTY_IO.cpp
+++ b/ace/TTY_IO.cpp
@@ -105,11 +105,13 @@ ACE_TTY_IO::control (Control_Mode cmd,
#endif /* CREAD */
c_oflag=0;
- c_iflag=IGNPAR|INPCK|ISTRIP;
+ c_iflag = IGNPAR | INPCK;
+ if (arg->databits < 8)
+ c_iflag |= ISTRIP;
c_lflag=0;
- ivmin_cc4 =(u_char)0;
- ivtime_cc5=(u_char)(arg->readtimeoutmsec/100);
+ ivmin_cc4 =(u_char) 0;
+ ivtime_cc5=(u_char) (arg->readtimeoutmsec / 100);
devpar.c_iflag = c_iflag;
devpar.c_oflag = c_oflag;
devpar.c_cflag = c_cflag;