* fhandler_serial.cc (fhandler_serial::tcgetattr): Just zero c_cflag here

rather than clearing CBAUD after the fact.
This commit is contained in:
Christopher Faylor
2005-09-09 03:00:34 +00:00
parent c0df672fa0
commit 270bbd4e24
3 changed files with 19 additions and 16 deletions

View File

@@ -179,10 +179,7 @@ tcgetattr (int fd, struct termios *in_t)
else if (!cfd->is_tty ())
set_errno (ENOTTY);
else if ((res = cfd->tcgetattr (t)) == 0)
{
t->c_cflag &= ~CBAUD;
__toapp_termios (in_t, t);
}
__toapp_termios (in_t, t);
if (res)
termios_printf ("%d = tcgetattr (%d, %p)", res, fd, in_t);