diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-10 18:10:08 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-10 18:10:08 +0000 |
| commit | 784fc12f7bc73621547ccc40e505688035127df4 (patch) | |
| tree | b821ea51a32e6f6c0f04289915a34d432934dc98 /sys/dev | |
| parent | bd508d391b5258e9ee145bc15161b62664c95fbb (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/snp/snp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 204088c639e1..1018083b5315 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -317,7 +317,7 @@ snpopen(dev, flag, mode, p) * snp_tty == NULL is for inactive snoop devices. */ snp->snp_tty = NULL; - snp->snp_target = -1; + snp->snp_target = NODEV; return (0); } @@ -349,7 +349,7 @@ snp_detach(snp) printf("Snoop: bad attached tty data.\n"); snp->snp_tty = NULL; - snp->snp_target = -1; + snp->snp_target = NODEV; detach_notty: selwakeup(&snp->snp_sel); @@ -404,7 +404,7 @@ snpioctl(dev, cmd, data, flags, p) switch (cmd) { case SNPSTTY: tdev = *((dev_t *) data); - if (tdev == -1) + if (tdev == NODEV) return (snpdown(snp)); tp = snpdevtotty(tdev); @@ -419,7 +419,7 @@ snpioctl(dev, cmd, data, flags, p) s = spltty(); - if (snp->snp_target == -1) { + if (snp->snp_target == NODEV) { tpo = snp->snp_tty; if (tpo) tpo->t_state &= ~TS_SNOOP; |
