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
This commit is contained in:
Thomas Moestl 2002-11-11 10:45:31 +00:00
parent aa26768242
commit 20207b60a8
2 changed files with 3 additions and 3 deletions

View File

@ -544,7 +544,7 @@ snpioctl(dev, cmd, data, flags, td)
* SNPGTTY happy, else we can't know what is device * SNPGTTY happy, else we can't know what is device
* major/minor for tty. * major/minor for tty.
*/ */
*((dev_t *)data) = snp->snp_target; *((udev_t *)data) = dev2udev(snp->snp_target);
break; break;
case FIONBIO: case FIONBIO:

View File

@ -30,8 +30,8 @@
* detached from its current tty. * detached from its current tty.
*/ */
#define SNPSTTY _IOW('T', 90, dev_t) #define SNPSTTY _IOW('T', 90, udev_t)
#define SNPGTTY _IOR('T', 89, dev_t) #define SNPGTTY _IOR('T', 89, udev_t)
/* /*
* These values would be returned by FIONREAD ioctl * These values would be returned by FIONREAD ioctl