From 9cf6b0732935e10afff1ff7f566fa3de43c60398 Mon Sep 17 00:00:00 2001 From: glass Date: Mon, 30 May 1994 06:12:07 +0000 Subject: [PATCH] add typecast, will compile --- sys/arch/pmax/dev/dc.c | 4 ++-- sys/arch/pmax/dev/scc.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/pmax/dev/dc.c b/sys/arch/pmax/dev/dc.c index 3e532cbf1582..b55c76a76e4e 100644 --- a/sys/arch/pmax/dev/dc.c +++ b/sys/arch/pmax/dev/dc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)dc.c 8.2 (Berkeley) 11/30/93 - * $Id: dc.c,v 1.4 1994/05/27 08:58:30 glass Exp $ + * $Id: dc.c,v 1.5 1994/05/30 06:12:07 glass Exp $ */ /* @@ -593,7 +593,7 @@ dcxint(tp) if (tp->t_state & TS_FLUSH) tp->t_state &= ~TS_FLUSH; else { - ndflush(&tp->t_outq, dp->p_mem-tp->t_outq.c_cf); + ndflush(&tp->t_outq, dp->p_mem - (caddr_t) tp->t_outq.c_cf); dp->p_end = dp->p_mem = tp->t_outq.c_cf; } if (tp->t_line) diff --git a/sys/arch/pmax/dev/scc.c b/sys/arch/pmax/dev/scc.c index 7d94e65c184c..c79b24e3aeed 100644 --- a/sys/arch/pmax/dev/scc.c +++ b/sys/arch/pmax/dev/scc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)scc.c 8.2 (Berkeley) 11/30/93 - * $Id: scc.c,v 1.4 1994/05/27 08:59:16 glass Exp $ + * $Id: scc.c,v 1.5 1994/05/30 06:13:58 glass Exp $ */ /* @@ -649,7 +649,8 @@ sccintr(unit) if (tp->t_state & TS_FLUSH) tp->t_state &= ~TS_FLUSH; else { - ndflush(&tp->t_outq, dp->p_mem-tp->t_outq.c_cf); + ndflush(&tp->t_outq, dp->p_mem - (caddr_t) + tp->t_outq.c_cf); dp->p_end = dp->p_mem = tp->t_outq.c_cf; } if (tp->t_line)