diff options
author | Doug Rabson <dfr@FreeBSD.org> | 1999-06-25 07:50:26 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 1999-06-25 07:50:26 +0000 |
commit | e523e96f26ae07bce49c4355ad522b81ff88e045 (patch) | |
tree | c3385d9ef04ee49af0fac7ad03ef9cdf443d893f /share | |
parent | 9a9eb2b92b4388ff7027ac96c37d3214363b4476 (diff) | |
download | src-e523e96f26ae07bce49c4355ad522b81ff88e045.tar.gz src-e523e96f26ae07bce49c4355ad522b81ff88e045.zip |
Make this sample build again.
Notes
Notes:
svn path=/head/; revision=48212
Diffstat (limited to 'share')
-rw-r--r-- | share/examples/kld/cdev/module/cdev.c | 4 | ||||
-rw-r--r-- | share/examples/kld/cdev/module/cdev.h | 2 | ||||
-rw-r--r-- | share/examples/kld/cdev/module/cdevmod.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/share/examples/kld/cdev/module/cdev.c b/share/examples/kld/cdev/module/cdev.c index 4c9e1397d26b..8739a5260917 100644 --- a/share/examples/kld/cdev/module/cdev.c +++ b/share/examples/kld/cdev/module/cdev.c @@ -91,7 +91,7 @@ int mydev_open(dev_t dev, int flag, int otyp, struct proc *procp) { printf("mydev_open: dev_t=%d, flag=%x, otyp=%x, procp=%p\n", - dev, flag, otyp, procp); + dev2udev(dev), flag, otyp, procp); return (0); } @@ -99,7 +99,7 @@ int mydev_close(dev_t dev, int flag, int otyp, struct proc *procp) { printf("mydev_close: dev_t=%d, flag=%x, otyp=%x, procp=%p\n", - dev, flag, otyp, procp); + dev2udev(dev), flag, otyp, procp); return (0); } diff --git a/share/examples/kld/cdev/module/cdev.h b/share/examples/kld/cdev/module/cdev.h index ae07c342e65d..34c82353b041 100644 --- a/share/examples/kld/cdev/module/cdev.h +++ b/share/examples/kld/cdev/module/cdev.h @@ -85,7 +85,7 @@ static struct cdevsw my_devsw = { nowrite, mydev_ioctl, nostop, - nullreset, + noreset, nodevtotty, NULL, nommap, diff --git a/share/examples/kld/cdev/module/cdevmod.c b/share/examples/kld/cdev/module/cdevmod.c index f8440924c2e4..e2ee2e8574a7 100644 --- a/share/examples/kld/cdev/module/cdevmod.c +++ b/share/examples/kld/cdev/module/cdevmod.c @@ -119,4 +119,4 @@ cdev_load(mod, cmd, arg) /* Now declare the module to the system */ -CDEV_MODULE(cdev_mod, CDEV_MAJOR, my_devsw, cdev_load, 0); +DEV_MODULE(cdev_mod, CDEV_MAJOR, -1, my_devsw, cdev_load, 0); |