diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-07-10 22:08:48 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-07-10 22:08:48 +0000 |
commit | 6b21b1cf010b3a7755b13b895bf5d2a09393a005 (patch) | |
tree | 56e9409ba62a462a96750425d5bf18b834439eb3 /sys/dev | |
parent | 59157759861c8eeba7e890a0c1dfd4f0166854ab (diff) |
proper cdev_decl(ksyms), fix ksyms's broken functions
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ksyms.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ksyms.c b/sys/dev/ksyms.c index cfec4e59d4f..f4d1f785506 100644 --- a/sys/dev/ksyms.c +++ b/sys/dev/ksyms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksyms.c,v 1.12 2002/03/14 01:26:52 millert Exp $ */ +/* $OpenBSD: ksyms.c,v 1.13 2002/07/10 22:08:47 mickey Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2001 Artur Grabowski <art@openbsd.org> @@ -34,6 +34,7 @@ #include <sys/uio.h> #include <sys/malloc.h> #include <sys/fcntl.h> +#include <sys/conf.h> #ifdef _NLIST_DO_ELF #include <sys/exec_elf.h> @@ -56,9 +57,6 @@ static size_t ksym_head_size; static size_t ksym_syms_size; void ksymsattach(int); -int ksymsopen(dev_t, int, int); -int ksymsclose(dev_t, int, int); -int ksymsread(dev_t, struct uio *, int); /* * We assume __LDPGSZ is a multiple of PAGE_SIZE (it is) @@ -157,9 +155,10 @@ ksymsattach(num) /*ARGSUSED*/ int -ksymsopen(dev, flag, mode) +ksymsopen(dev, flag, mode, p) dev_t dev; int flag, mode; + struct proc *p; { /* There are no non-zero minor devices */ @@ -179,9 +178,10 @@ ksymsopen(dev, flag, mode) /*ARGSUSED*/ int -ksymsclose(dev, flag, mode) +ksymsclose(dev, flag, mode, p) dev_t dev; int flag, mode; + struct proc *p; { return (0); |