Subject: patches to get /usr/src/arch/i386/isa/pccons.c to compile
To: None <current-users@NetBSD.ORG>
From: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
List: current-users
Date: 04/21/1995 14:33:15
Now that i386 kernel compile warnings are treated as errors pccons.c
won't compile. These changes allow you to get a pccons.o YMMV
--- pccons.c.DIST Fri Apr 21 13:46:35 1995
+++ pccons.c Fri Apr 21 14:18:22 1995
@@ -112,7 +112,7 @@
struct device sc_dev;
void *sc_ih;
struct tty *sc_tty;
-}
+};
int pcprobe __P((struct device *, void *, void *));
void pcattach __P((struct device *, struct device *, void *));
@@ -603,7 +603,12 @@
int flag;
struct proc *p;
{
+#if 1
+ struct pc_softc *sc = (struct pc_softc *)pccd.cd_devs[PCUNIT(dev)];
+ register struct tty *tp = sc->sc_tty;
+#else
register struct tty *tp = pccd.cd_devs[PCUNIT(dev)]->sc_tty;
+#endif
int error;
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
@@ -858,8 +863,8 @@
cursor_shape = 0x0012;
#endif
- Crtat = cp;
- crtat = cp + cursorat;
+ Crtat = (u_short *)cp;
+ crtat = (u_short *)(cp + cursorat);
vs.ncol = COL;
vs.nrow = ROW;