summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-08-24 18:44:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-08-24 18:44:50 +0000
commit3f33314f11e359bc03e8654ab2dcb9feadf7bdc1 (patch)
tree0ec302fc58806ef316cfcf9ba70c815d9bf6a266 /sys/arch
parentccba43642265759e7d1ca4c3f58d826177e3dd45 (diff)
Oops, unbreak dartcngetc().
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme88k/dev/dart.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c
index a61a0229c03..aa9e8950997 100644
--- a/sys/arch/mvme88k/dev/dart.c
+++ b/sys/arch/mvme88k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.40 2004/08/19 17:10:15 miod Exp $ */
+/* $OpenBSD: dart.c,v 1.41 2004/08/24 18:44:49 miod Exp $ */
/*
* Mach Operating System
@@ -1242,7 +1242,7 @@ dartcngetc(dev)
union dartreg *addr; /* pointer to DUART regs */
union dart_pt_io *ptaddr; /* pointer to port regs */
unsigned char sr; /* status reg of port a/b */
- int c; /* received character */
+ u_char c; /* received character */
int s;
int port;
#if 1
@@ -1289,7 +1289,6 @@ dartcngetc(dev)
DELAY_CR;
ptaddr->write.wr_cr = BRKINTRESET;
} else {
- /* c &= 0x7f; */
break;
}
}
@@ -1299,5 +1298,5 @@ dartcngetc(dev)
#else
set_psr(psr);
#endif
- return c;
+ return (int)c;
}