summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/memdevs.c
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/memdevs.c
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/memdevs.c')
-rw-r--r--sys/arch/mvme68k/dev/memdevs.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/mvme68k/dev/memdevs.c b/sys/arch/mvme68k/dev/memdevs.c
index 32242ca083b..4bdf9443b2a 100644
--- a/sys/arch/mvme68k/dev/memdevs.c
+++ b/sys/arch/mvme68k/dev/memdevs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: memdevs.c,v 1.3 1996/04/28 11:03:25 deraadt Exp $ */
+/* $OpenBSD: memdevs.c,v 1.4 2002/04/27 23:21:05 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -37,10 +37,12 @@
#include <sys/systm.h>
#include <sys/uio.h>
#include <sys/malloc.h>
-
#include <sys/device.h>
-#include <machine/cpu.h>
+
#include <machine/autoconf.h>
+#include <machine/cpu.h>
+
+#include <mvme68k/dev/memdevs.h>
/*ARGSUSED*/
int
@@ -50,9 +52,9 @@ memdevrw(base, len, uio, flags)
struct uio *uio;
int flags;
{
- register vm_offset_t o, v;
- register int c;
- register struct iovec *iov;
+ vaddr_t v;
+ int c;
+ struct iovec *iov;
int error = 0;
while (uio->uio_resid > 0 && error == 0) {