diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-06 17:24:13 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-06 17:24:13 +0000 |
commit | 1fccb849f8441001200bc3849bb5c6eeeab228e7 (patch) | |
tree | 2d195905106e1e1953f8bc14132f8fc3c623e018 /sys/arch/hp300/dev | |
parent | 5bf8b4b248708994044c7e0ca0bdce285a3e9677 (diff) |
please gcc 2.8
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/grf.c | 7 | ||||
-rw-r--r-- | sys/arch/hp300/dev/ite.c | 12 |
2 files changed, 10 insertions, 9 deletions
diff --git a/sys/arch/hp300/dev/grf.c b/sys/arch/hp300/dev/grf.c index d4fb949475c..ce31812cbd1 100644 --- a/sys/arch/hp300/dev/grf.c +++ b/sys/arch/hp300/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.6 1997/04/16 11:56:02 downsj Exp $ */ +/* $OpenBSD: grf.c,v 1.7 1998/03/06 17:24:11 millert Exp $ */ /* $NetBSD: grf.c,v 1.25 1997/04/02 22:37:30 scottr Exp $ */ /* @@ -183,16 +183,17 @@ grfopen(dev, flags, mode, p) /* * XXX: cannot handle both HPUX and BSD processes at the same time */ - if (p->p_emul == &emul_hpux) + if (p->p_emul == &emul_hpux) { if (gp->g_flags & GF_BSDOPEN) return(EBUSY); else gp->g_flags |= GF_HPUXOPEN; - else + } else { if (gp->g_flags & GF_HPUXOPEN) return(EBUSY); else gp->g_flags |= GF_BSDOPEN; + } #endif /* * First open. diff --git a/sys/arch/hp300/dev/ite.c b/sys/arch/hp300/dev/ite.c index 2c0a96f42f0..dfb3acae522 100644 --- a/sys/arch/hp300/dev/ite.c +++ b/sys/arch/hp300/dev/ite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ite.c,v 1.10 1997/04/16 11:56:10 downsj Exp $ */ +/* $OpenBSD: ite.c,v 1.11 1998/03/06 17:24:12 millert Exp $ */ /* $NetBSD: ite.c,v 1.38 1997/03/31 07:37:25 scottr Exp $ */ /* @@ -521,25 +521,25 @@ itefilter(stat, c) default: case KBD_KEY: if (!capsmode) { - code = kbd_keymap[c]; + code = kbd_keymap[(int)c]; break; } /* FALLTHROUGH */ case KBD_SHIFT: - code = kbd_shiftmap[c]; + code = kbd_shiftmap[(int)c]; break; case KBD_CTRL: - code = kbd_ctrlmap[c]; + code = kbd_ctrlmap[(int)c]; break; case KBD_CTRLSHIFT: - code = kbd_ctrlshiftmap[c]; + code = kbd_ctrlshiftmap[(int)c]; break; } - if (code == '\0' && (str = kbd_stringmap[c]) != '\0') { + if (code == '\0' && (str = kbd_stringmap[(int)c]) != '\0') { while (*str) (*linesw[kbd_tty->t_line].l_rint)(*str++, kbd_tty); } else { |