diff options
-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)); |