summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/vsvar.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-04-27 23:21:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-04-27 23:21:07 +0000
commit68bd39a8215f0f8a94a812dd041e1f0257eadb4c (patch)
tree0cf3291275ed21e599146dea724c8f4c962a61db /sys/arch/mvme68k/dev/vsvar.h
parentd75a8327a6482df990b368070cf1e837f96bae60 (diff)
Jumbo commit to fix all compilation warnings on mvme68k (add prototypes,
add casts, fix a few errors and typos in the process, etc)
Diffstat (limited to 'sys/arch/mvme68k/dev/vsvar.h')
-rw-r--r--sys/arch/mvme68k/dev/vsvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/dev/vsvar.h b/sys/arch/mvme68k/dev/vsvar.h
index 0863e66302e..4095e672462 100644
--- a/sys/arch/mvme68k/dev/vsvar.h
+++ b/sys/arch/mvme68k/dev/vsvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vsvar.h,v 1.2 2002/03/14 01:26:37 millert Exp $ */
+/* $OpenBSD: vsvar.h,v 1.3 2002/04/27 23:21:05 miod Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
* Copyright (c) 1990 The Regents of the University of California.
@@ -47,7 +47,7 @@
#define DMAMAXIO (MAXPHYS/NBPG+1)
#define LO(x) (u_short)((unsigned long)x & 0x0000FFFF)
#define HI(x) (u_short)((unsigned long)x >> 16)
-#define OFF(x) (u_short)((long)kvtop(x) - (long)kvtop(sc->sc_vsreg))
+#define OFF(x) (u_short)((long)kvtop((vaddr_t)x) - (long)kvtop((vaddr_t)sc->sc_vsreg))
struct vs_tinfo {
int cmds; /* #commands processed */