From a4daaa09f27593c420c7c693b2f2d7cf892d1587 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 13 Feb 1998 12:46:28 +0000 Subject: 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 --- sys/dev/rc/rc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/dev/rc') diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 2779bbf5087d..784527f42668 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -1476,12 +1476,7 @@ disc_optim(tp, t, rc) tp->t_state |= TS_CAN_BYPASS_L_RINT; else tp->t_state &= ~TS_CAN_BYPASS_L_RINT; - if (tp->t_line == SLIPDISC) - rc->rc_hotchar = 0xc0; - else if (tp->t_line == PPPDISC) - rc->rc_hotchar = 0x7e; - else - rc->rc_hotchar = 0; + rc->rc_hotchar = linesw[tp->t_line].l_hotchar; } static void -- cgit v1.3