summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/hp300/dev/grf.c7
-rw-r--r--sys/arch/hp300/dev/ite.c12
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 {