summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/cdev/test/testcdev.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-06-27 12:44:44 +0000
committerdfr <dfr@FreeBSD.org>1999-06-27 12:44:44 +0000
commit633d8b5f5a152bf3fdda8daf986ec47105ae879b (patch)
treeecbd2f08cc1b76af7b0b0b9ba217f4d4fcab1030 /share/examples/kld/cdev/test/testcdev.c
parent6d9ab211ebee6249e6a59d14305833c9ec03048c (diff)
downloadFreeBSD-src-633d8b5f5a152bf3fdda8daf986ec47105ae879b.zip
FreeBSD-src-633d8b5f5a152bf3fdda8daf986ec47105ae879b.tar.gz
* 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
Diffstat (limited to 'share/examples/kld/cdev/test/testcdev.c')
-rw-r--r--share/examples/kld/cdev/test/testcdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/examples/kld/cdev/test/testcdev.c b/share/examples/kld/cdev/test/testcdev.c
index c1aeeba..e43df97 100644
--- a/share/examples/kld/cdev/test/testcdev.c
+++ b/share/examples/kld/cdev/test/testcdev.c
@@ -74,8 +74,9 @@
#define CDEV_IOCTL1 _IOR('C', 1, u_int)
#define CDEV_DEVICE "cdev"
+
int
-main()
+main(int argc, char *argv[])
{
int kernel_fd;
int one;
OpenPOWER on IntegriCloud