From 1ac9a556597ce64c5abec60c16f447023193bf93 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 28 Apr 2002 15:17:10 +0000 Subject: Use the prototypes defined via cdev_decl() macros, instead of rolling our own; thus fix a lot of foo_open(), foo_close() and foo_ioctl() prototypes in the process. --- sys/arch/hp300/hp300/mem.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/arch/hp300') diff --git a/sys/arch/hp300/hp300/mem.c b/sys/arch/hp300/hp300/mem.c index ad6006cc4fa..805a218c78b 100644 --- a/sys/arch/hp300/hp300/mem.c +++ b/sys/arch/hp300/hp300/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.19 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: mem.c,v 1.20 2002/04/28 15:17:07 miod Exp $ */ /* $NetBSD: mem.c,v 1.25 1999/03/27 00:30:06 mycroft Exp $ */ /* @@ -61,17 +61,16 @@ extern u_int lowram; extern char *extiobase; static caddr_t devzeropage; -int mmopen(dev_t, int, int); -int mmclose(dev_t, int, int); -int mmrw(dev_t, struct uio *, int); -paddr_t mmmmap(dev_t, off_t, int); -int mmioctl(dev_t, u_long, caddr_t, int, struct proc *); +#define mmread mmrw +#define mmwrite mmrw +cdev_decl(mm); /*ARGSUSED*/ int -mmopen(dev, flag, mode) +mmopen(dev, flag, mode, p) dev_t dev; int flag, mode; + struct proc *p; { switch (minor(dev)) { @@ -87,9 +86,10 @@ mmopen(dev, flag, mode) /*ARGSUSED*/ int -mmclose(dev, flag, mode) +mmclose(dev, flag, mode, p) dev_t dev; int flag, mode; + struct proc *p; { return (0); -- cgit v1.2.3