From 633d8b5f5a152bf3fdda8daf986ec47105ae879b Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 27 Jun 1999 12:44:44 +0000 Subject: * Tidy up a few things and fix some more warnings. * Change the devsw declaration to standard form and add missing fields * Change the filename from cdev_mod.ko to cdev.ko --- share/examples/kld/cdev/module/cdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/examples/kld/cdev/module/cdev.c') diff --git a/share/examples/kld/cdev/module/cdev.c b/share/examples/kld/cdev/module/cdev.c index 8739a52..4cbbc07 100644 --- a/share/examples/kld/cdev/module/cdev.c +++ b/share/examples/kld/cdev/module/cdev.c @@ -68,6 +68,9 @@ #include #include #include +#include +#include + #include "cdev.h" /* @@ -109,7 +112,7 @@ mydev_ioctl(dev_t dev, u_long cmd, caddr_t arg, int mode, struct proc *procp) int error = 0; printf("mydev_ioctl: dev_t=%d, cmd=%lx, arg=%p, mode=%x procp=%p\n", - dev, cmd, arg, mode, procp); + dev2udev(dev), cmd, arg, mode, procp); switch(cmd) { case CDEV_IOCTL1: -- cgit v1.1