diff options
author | tmm <tmm@FreeBSD.org> | 2002-11-11 10:45:31 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-11-11 10:45:31 +0000 |
commit | 1d05c959405db22d026090bac63b9ed9b898f809 (patch) | |
tree | 9eb53edd1a929008b094cc2ef49a8ade693e646a /sys/dev/snp/snp.c | |
parent | b45f2ba21c6efa0d64b6e3127d94208bff8e29bc (diff) | |
download | FreeBSD-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
Diffstat (limited to 'sys/dev/snp/snp.c')
-rw-r--r-- | sys/dev/snp/snp.c | 2 |
1 files changed, 1 insertions, 1 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: |