summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2002-11-11 10:45:31 +0000
committertmm <tmm@FreeBSD.org>2002-11-11 10:45:31 +0000
commit1d05c959405db22d026090bac63b9ed9b898f809 (patch)
tree9eb53edd1a929008b094cc2ef49a8ade693e646a
parentb45f2ba21c6efa0d64b6e3127d94208bff8e29bc (diff)
downloadFreeBSD-src-1d05c959405db22d026090bac63b9ed9b898f809.zip
FreeBSD-src-1d05c959405db22d026090bac63b9ed9b898f809.tar.gz
Declare the snp ioctl()s to work on udev_t, since that is what they
really do and dev_t is defined differently in kernel and userland. Return a correctly formed udev from SNPGTTY. Reviewed by: dd
-rw-r--r--sys/dev/snp/snp.c2
-rw-r--r--sys/sys/snoop.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 4891666..34e3e29 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -544,7 +544,7 @@ snpioctl(dev, cmd, data, flags, td)
* SNPGTTY happy, else we can't know what is device
* major/minor for tty.
*/
- *((dev_t *)data) = snp->snp_target;
+ *((udev_t *)data) = dev2udev(snp->snp_target);
break;
case FIONBIO:
diff --git a/sys/sys/snoop.h b/sys/sys/snoop.h
index 992be9b..026dd7a 100644
--- a/sys/sys/snoop.h
+++ b/sys/sys/snoop.h
@@ -30,8 +30,8 @@
* detached from its current tty.
*/
-#define SNPSTTY _IOW('T', 90, dev_t)
-#define SNPGTTY _IOR('T', 89, dev_t)
+#define SNPSTTY _IOW('T', 90, udev_t)
+#define SNPGTTY _IOR('T', 89, udev_t)
/*
* These values would be returned by FIONREAD ioctl
OpenPOWER on IntegriCloud