Make this sample build again.

This commit is contained in:
Doug Rabson 1999-06-25 07:50:26 +00:00
parent 9a9eb2b92b
commit e523e96f26
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -85,7 +85,7 @@ static struct cdevsw my_devsw = {
nowrite,
mydev_ioctl,
nostop,
nullreset,
noreset,
nodevtotty,
NULL,
nommap,

View File

@ -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);