diff options
author | bde <bde@FreeBSD.org> | 1999-06-17 07:07:55 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-06-17 07:07:55 +0000 |
commit | 1fff825331d10beaacf6c7148b019c3c3ac74fa1 (patch) | |
tree | 81b6ab81977e585ce1fd8805bb8d77446e9bd8a1 | |
parent | 2f13d2c4a2e4abc8f885d9c8e968b2bd6dfcd659 (diff) | |
download | FreeBSD-src-1fff825331d10beaacf6c7148b019c3c3ac74fa1.zip FreeBSD-src-1fff825331d10beaacf6c7148b019c3c3ac74fa1.tar.gz |
Fixed a missing userland dev_t to kernel dev_t conversion.
-rw-r--r-- | sys/dev/snp/snp.c | 2 | ||||
-rw-r--r-- | sys/kern/tty_snoop.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index d9f9897..3c20d35 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -416,7 +416,7 @@ snpioctl(dev, cmd, data, flags, p) switch (cmd) { case SNPSTTY: - tdev = *((dev_t *) data); + tdev = udev2dev(*((udev_t *) data), 0); if (tdev == NODEV) return (snpdown(snp)); diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c index d9f9897..3c20d35 100644 --- a/sys/kern/tty_snoop.c +++ b/sys/kern/tty_snoop.c @@ -416,7 +416,7 @@ snpioctl(dev, cmd, data, flags, p) switch (cmd) { case SNPSTTY: - tdev = *((dev_t *) data); + tdev = udev2dev(*((udev_t *) data), 0); if (tdev == NODEV) return (snpdown(snp)); |