15c15
< * $FreeBSD: head/sys/dev/snp/snp.c 50477 1999-08-28 01:08:13Z peter $
---
> * $FreeBSD: head/sys/dev/snp/snp.c 51654 1999-09-25 16:21:39Z phk $
85,87c85,87
< if (cdp == NULL)
< return (NULL);
< return ((*cdp->d_devtotty)(dev));
---
> if (cdp && cdp->d_flags & D_TTY)
> return (dev->si_tty);
> return (NULL);
< * $FreeBSD: head/sys/dev/snp/snp.c 50477 1999-08-28 01:08:13Z peter $
---
> * $FreeBSD: head/sys/dev/snp/snp.c 51654 1999-09-25 16:21:39Z phk $
85,87c85,87
< if (cdp == NULL)
< return (NULL);
< return ((*cdp->d_devtotty)(dev));
---
> if (cdp && cdp->d_flags & D_TTY)
> return (dev->si_tty);
> return (NULL);