From c2ee1dcc02035d781d6c70f06df7106979a9f870 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 9 Dec 2000 09:35:55 +0000 Subject: Add `_PATH_DEVZERO'. Use _PATH_* where where possible. --- share/examples/kld/cdev/test/testcdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share/examples/kld') diff --git a/share/examples/kld/cdev/test/testcdev.c b/share/examples/kld/cdev/test/testcdev.c index 8f2c0b3..d69c3f5 100644 --- a/share/examples/kld/cdev/test/testcdev.c +++ b/share/examples/kld/cdev/test/testcdev.c @@ -70,8 +70,10 @@ * * $FreeBSD$ */ + #include #include +#include #include #include @@ -97,7 +99,7 @@ main(int argc, char *argv[]) if (ioctl(kernel_fd, CDEV_IOCTL1, &one) == -1) { perror("CDEV_IOCTL1"); } else { - printf( "Sent ioctl CDEV_IOCTL1 to device /dev/" CDEV_DEVICE "\n"); + printf( "Sent ioctl CDEV_IOCTL1 to device %s%s\n", _PATH_DEV, CDEV_DEVICE); } len = strlen(writestr) + 1; -- cgit v1.1