summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-08 14:25:53 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-08 14:25:53 +0000
commitb6f29caaba4aaeb972675d67ca7c434a5e9b73a7 (patch)
tree5ef85dc039e10e57fb15b250c4ce10f81084cfa6 /sys/kern/tty.c
parent52aa3799b1532a9cd3e62ab778110510fca51689 (diff)
-Wcast-qual happiness
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index f6fb3acec5b..9d698fccd82 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.19 1996/11/11 04:28:16 tholo Exp $ */
+/* $OpenBSD: tty.c,v 1.20 1996/12/08 14:25:48 niklas Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -106,7 +106,7 @@ char ttyout[] = "ttyout";
#define TB TAB
#define VT VTAB
-char const char_type[] = {
+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 */
@@ -1557,8 +1557,8 @@ loop:
if (!ISSET(tp->t_oflag, OPOST))
ce = cc;
else {
- ce = cc - scanc((u_int)cc, cp,
- (u_char *)char_type, CCLASSMASK);
+ ce = cc - scanc((u_int)cc, cp, char_type,
+ CCLASSMASK);
/*
* If ce is zero, then we're processing
* a special character through ttyoutput.