mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-17 16:10:46 +01:00
Directly clear parity area because cfmakeraw not do it
This commit is contained in:
parent
81c280f58f
commit
e3118d3f5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14871
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: modem.c,v 1.20 1996/03/27 22:28:19 ache Exp $
|
||||
* $Id: modem.c,v 1.21 1996/03/27 22:58:21 ache Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -458,6 +458,7 @@ int mode;
|
||||
/*
|
||||
* If we are working as direct mode, don't change tty speed.
|
||||
*/
|
||||
rstio.c_cflag &= ~(CSIZE|PARODD|PARENB);
|
||||
rstio.c_cflag |= VarParity;
|
||||
cfsetspeed(&rstio, IntToSpeed(VarSpeed));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user