summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2001-03-23 14:05:05 +0000
committeralex <alex@FreeBSD.org>2001-03-23 14:05:05 +0000
commit058bb2904405e3a77fa8c05caca59d8ae2253382 (patch)
tree19f811d838719f7d51ec309355cab95ecac56c03 /share
parent61a1bf81e6c5ad5077a7ca7b184f464e71541247 (diff)
downloadFreeBSD-src-058bb2904405e3a77fa8c05caca59d8ae2253382.zip
FreeBSD-src-058bb2904405e3a77fa8c05caca59d8ae2253382.tar.gz
- DECLARE_MODULE needs SYSINIT -> include sys/kernel.h
- modeventhand_t declares a pointer to a function, so it can't be used as a forward declaration (d'oh!) Submitted by: Harti Brandt <brandt@fokus.gmd.de>
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/module.94
1 files changed, 3 insertions, 1 deletions
diff --git a/share/man/man9/module.9 b/share/man/man9/module.9
index a1331b7..c0a30a3 100644
--- a/share/man/man9/module.9
+++ b/share/man/man9/module.9
@@ -64,8 +64,10 @@ contains the value of
.Bd -literal
#include <sys/param.h>
#include <sys/module.h>
+#include <sys/kernel.h>
-modeventhand_t foo_handler;
+static int foo_handler(module_t mod, int /*modeventtype_t*/ what,
+ void *arg);
static moduledata_t mod_data= {
"foo",
OpenPOWER on IntegriCloud