Back out ospeed change
This commit is contained in:
parent
824789192c
commit
433c849296
@ -34,10 +34,8 @@
|
||||
*/
|
||||
|
||||
/* This should be in <termcap.h> instead. */
|
||||
#ifndef __FreeBSD__
|
||||
extern char PC;
|
||||
extern short ospeed;
|
||||
#endif
|
||||
int tgetent __P((char *, char *));
|
||||
int tgetflag __P((char *));
|
||||
int tgetnum __P((char *));
|
||||
|
@ -241,10 +241,9 @@ set_init()
|
||||
int settle;
|
||||
|
||||
bp = buf;
|
||||
#ifndef __FreeBSD__
|
||||
if (tgetstr("pc", &bp) != 0) /* Get/set pad character. */
|
||||
PC = buf[0];
|
||||
#endif
|
||||
|
||||
#ifdef TAB3
|
||||
if (oldmode.c_oflag & (TAB3 | ONLCR | OCRNL | ONLRET)) {
|
||||
oldmode.c_oflag &= (TAB3 | ONLCR | OCRNL | ONLRET);
|
||||
|
@ -81,7 +81,6 @@ main(argc, argv)
|
||||
|
||||
oldmode = mode;
|
||||
Ospeed = cfgetospeed(&mode);
|
||||
#ifndef __FreeBSD__
|
||||
switch(Ospeed) {
|
||||
case B0: ospeed = 0; break;
|
||||
case B50: ospeed = 1; break;
|
||||
@ -110,7 +109,7 @@ main(argc, argv)
|
||||
case B115200: ospeed = 17; break;
|
||||
#endif
|
||||
}
|
||||
#endif /* __FreeBSD__ */
|
||||
|
||||
if (p = strrchr(*argv, '/'))
|
||||
++p;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user