diff options
author | dfr <dfr@FreeBSD.org> | 1999-06-25 07:50:26 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-06-25 07:50:26 +0000 |
commit | 689fdb91cbd09faf9b8a4b0864bfa3085472d997 (patch) | |
tree | cf51a84a17c0e715f3f32ed47c7cfeea95184383 /share/examples/kld/cdev/module/cdev.c | |
parent | 700cc4b9df826524cd42ec50162207d169797fc8 (diff) | |
download | FreeBSD-src-689fdb91cbd09faf9b8a4b0864bfa3085472d997.zip FreeBSD-src-689fdb91cbd09faf9b8a4b0864bfa3085472d997.tar.gz |
Make this sample build again.
Diffstat (limited to 'share/examples/kld/cdev/module/cdev.c')
-rw-r--r-- | share/examples/kld/cdev/module/cdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/kld/cdev/module/cdev.c b/share/examples/kld/cdev/module/cdev.c index 4c9e139..8739a52 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); } |