diff options
author | phk <phk@FreeBSD.org> | 1998-02-13 12:46:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-02-13 12:46:28 +0000 |
commit | 76528cc622637526fe2545d99fd21a2c6f39e9c4 (patch) | |
tree | 93a9b69fd7cbfbcfaa3a59dc4588bf3dfdb8dd8b /sys/i386/isa/istallion.c | |
parent | 3a8117ec4ddcc05573335ac5f170bf00089f52da (diff) | |
download | FreeBSD-src-76528cc622637526fe2545d99fd21a2c6f39e9c4.zip FreeBSD-src-76528cc622637526fe2545d99fd21a2c6f39e9c4.tar.gz |
Implement the spirit but not the letter of Terrys hot-char patch.
The differences Terrys patch and this patch are:
* Remove a lot of un-needed comments.
* Don't put l_hotchar at the front of stuct linesw, there is no need to.
* Use the #defines for the hotchar in the SLIP and PPP line disciplines
Diffstat (limited to 'sys/i386/isa/istallion.c')
-rw-r--r-- | sys/i386/isa/istallion.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index e74ec01..b59e5b2 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: istallion.c,v 1.15 1997/12/16 17:40:00 eivind Exp $ + * $Id: istallion.c,v 1.16 1998/02/09 06:08:33 eivind Exp $ */ /*****************************************************************************/ @@ -2507,13 +2507,7 @@ static void stli_ttyoptim(stliport_t *portp, struct termios *tiosp) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - - if (tp->t_line == SLIPDISC) - portp->hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - portp->hotchar = 0x7e; - else - portp->hotchar = 0; + portp->hotchar = linesw[tp->t_line].l_hotchar; } /*****************************************************************************/ |