mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
aa26768242
commit
20207b60a8
2 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue