Cleanups for 4.4BSD-Lite
[unix-history] / usr / src / sys / kern / tty.c
index 6c6c3b0..4b12b5e 100644 (file)
@@ -1,11 +1,11 @@
 /*-
 /*-
- * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
- * Copyright (c) 1991 The Regents of the University of California.
+ * Copyright (c) 1982, 1986, 1990, 1991, 1993
+ *     The Regents of the University of California.  All rights reserved.
  * All rights reserved.
  *
  * %sccs.include.redist.c%
  *
  * All rights reserved.
  *
  * %sccs.include.redist.c%
  *
- *     @(#)tty.c       7.55 (Berkeley) %G%
+ *     @(#)tty.c       8.1 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -442,7 +442,7 @@ ttioctl(tp, com, data, flag)
                        return (EPERM);
                if (p->p_ucred->cr_uid && !isctty(p, tp))
                        return (EACCES);
                        return (EPERM);
                if (p->p_ucred->cr_uid && !isctty(p, tp))
                        return (EACCES);
-               (*linesw[tp->t_line].l_rint)(*(char *)data, tp);
+               (*linesw[tp->t_line].l_rint)(*(u_char *)data, tp);
                break;
 
        case TIOCGETA: {
                break;
 
        case TIOCGETA: {