In the initial terminal setup, cfset[io]speed() was
authorDave A. Borman <dab@ucbvax.Berkeley.EDU>
Sat, 2 Mar 1991 06:51:04 +0000 (22:51 -0800)
committerDave A. Borman <dab@ucbvax.Berkeley.EDU>
Sat, 2 Mar 1991 06:51:04 +0000 (22:51 -0800)
SCCS-vsn: libexec/telnetd/sys_term.c 5.14

usr/src/libexec/telnetd/sys_term.c

index 9adb54c..f34c772 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)sys_term.c 5.13 (Berkeley) %G%";
+static char sccsid[] = "@(#)sys_term.c 5.14 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "telnetd.h"
 #endif /* not lint */
 
 #include "telnetd.h"
@@ -967,8 +967,8 @@ getptyslave()
        termbuf.c_iflag |= ICRNL;
        termbuf.c_iflag &= ~IXOFF;
 # endif /* defined(USE_TERMIO) && !defined(CRAY) && (BSD <= 43) */
        termbuf.c_iflag |= ICRNL;
        termbuf.c_iflag &= ~IXOFF;
 # endif /* defined(USE_TERMIO) && !defined(CRAY) && (BSD <= 43) */
-       cfsetospeed(&termbuf, (def_tspeed == -1) ? B9600 : def_tspeed);
-       cfsetispeed(&termbuf, (def_rspeed == -1) ? B9600 : def_rspeed);
+       tty_rspeed(def_rspeed);
+       tty_tspeed(def_tspeed);
 # ifdef        LINEMODE
        if (waslm)
                tty_setlinemode(1);
 # ifdef        LINEMODE
        if (waslm)
                tty_setlinemode(1);