diff options
author | Tor Egge <tegge@FreeBSD.org> | 2002-10-20 18:43:11 +0000 |
---|---|---|
committer | Tor Egge <tegge@FreeBSD.org> | 2002-10-20 18:43:11 +0000 |
commit | 0a676b7eb6a0985d12bfe664fe4ef486dab0509f (patch) | |
tree | 3f3a13d6ccb60e9c566b2e7953ea02992bab3e0a /sys/dev/rp | |
parent | 8f9628a126386f834b7639314e2abc5cba48db0a (diff) | |
download | src-0a676b7eb6a0985d12bfe664fe4ef486dab0509f.tar.gz src-0a676b7eb6a0985d12bfe664fe4ef486dab0509f.zip |
Notes
Diffstat (limited to 'sys/dev/rp')
-rw-r--r-- | sys/dev/rp/rp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index 148267a76631..56a8d6bf87c9 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -695,7 +695,7 @@ static _INLINE_ void rp_do_receive(struct rp_port *rp, struct tty *tp, rp_readmultich2(cp,sGetTxRxDataIO(cp),(u_int16_t *)rp->RxBuf,wRecv); } if ( ToRecv & 1 ) { - rp->RxBuf[(ToRecv-1)] = (u_char) rp_readch1(cp,sGetTxRxDataIO(cp)); + ((unsigned char *)rp->RxBuf)[(ToRecv-1)] = (u_char) rp_readch1(cp,sGetTxRxDataIO(cp)); } tk_nin += ToRecv; tk_rawcc += ToRecv; @@ -1644,7 +1644,8 @@ rpstart(tp) rp_writemultich2(cp, sGetTxRxDataIO(cp), (u_int16_t *)rp->TxBuf, wcount); } if ( count & 1 ) { - rp_writech1(cp, sGetTxRxDataIO(cp), rp->TxBuf[(count-1)]); + rp_writech1(cp, sGetTxRxDataIO(cp), + ((unsigned char *)(rp->TxBuf))[(count-1)]); } } rp->rp_restart = (qp->c_cc > 0) ? rp->rp_fifo_lw : 0; |