summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-08-31 16:52:44 +0000
committerbde <bde@FreeBSD.org>1996-08-31 16:52:44 +0000
commit070eb30ca675029e79f93333b60287527efc0906 (patch)
treed0ca99d3f53a0fe4ea60e83d05baa8825fdd8cc4 /sys/kern/tty.c
parentdb0af2c4dc8e05c93d178bf31653024d244398bb (diff)
downloadFreeBSD-src-070eb30ca675029e79f93333b60287527efc0906.zip
FreeBSD-src-070eb30ca675029e79f93333b60287527efc0906.tar.gz
Fixed the easy cases of const poisoning in the kernel. Cosmetic.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 4d3c983..bdae27a 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.82 1996/06/12 05:07:33 gpalmer Exp $
+ * $Id: tty.c,v 1.83 1996/08/28 18:45:09 bde Exp $
*/
/*-
@@ -135,7 +135,7 @@ static int ttywflush __P((struct tty *tp));
#define TB TAB
#define VT VTAB
-static char const char_type[] = {
+static u_char const char_type[] = {
E|CC, O|CC, O|CC, E|CC, O|CC, E|CC, E|CC, O|CC, /* nul - bel */
O|BS, E|TB, E|NL, O|CC, E|VT, O|CR, O|CC, E|CC, /* bs - si */
O|CC, E|CC, E|CC, O|CC, E|CC, O|CC, O|CC, E|CC, /* dle - etb */
@@ -1816,7 +1816,7 @@ loop:
ce = cc;
else {
ce = cc - scanc((u_int)cc, (u_char *)cp,
- (u_char *)char_type, CCLASSMASK);
+ char_type, CCLASSMASK);
/*
* If ce is zero, then we're processing
* a special character through ttyoutput.
OpenPOWER on IntegriCloud