summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/cdev/module/cdevmod.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-16 06:55:34 +0000
committertjr <tjr@FreeBSD.org>2004-07-16 06:55:34 +0000
commit643584db6c8de64519d281f69af2d81ff79bffe4 (patch)
tree28f8dcde411cc1104e312d6774c39118fbd05fad /share/examples/kld/cdev/module/cdevmod.c
parenta5d1cface5348b28a9ad6a9f5817ccf9c670977d (diff)
downloadFreeBSD-src-643584db6c8de64519d281f69af2d81ff79bffe4.zip
FreeBSD-src-643584db6c8de64519d281f69af2d81ff79bffe4.tar.gz
Update for struct cdevsw and dev_t -> struct cdev * changes, plus one
64-bit portability fix.
Diffstat (limited to 'share/examples/kld/cdev/module/cdevmod.c')
-rw-r--r--share/examples/kld/cdev/module/cdevmod.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/examples/kld/cdev/module/cdevmod.c b/share/examples/kld/cdev/module/cdevmod.c
index ceb6ce0..0f6f3cb 100644
--- a/share/examples/kld/cdev/module/cdevmod.c
+++ b/share/examples/kld/cdev/module/cdevmod.c
@@ -82,6 +82,7 @@
#endif
static struct cdevsw my_devsw = {
+ /* version */ .d_version = D_VERSION,
/* open */ .d_open = mydev_open,
/* close */ .d_close = mydev_close,
/* read */ .d_read = mydev_read,
@@ -96,7 +97,7 @@ static struct cdevsw my_devsw = {
* in devfs... we must keep this variable sane until we
* call kldunload.
*/
-static dev_t sdev;
+static struct cdev *sdev;
/*
* This function is called each time the module is loaded or unloaded.
OpenPOWER on IntegriCloud