summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/watch/watch.c')
-rw-r--r--usr.sbin/watch/watch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index a062ae0..11a80af 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -218,10 +218,10 @@ setup_scr(void)
static void
detach_snp(void)
{
- dev_t dev;
+ int fd;
- dev = NODEV;
- ioctl(snp_io, SNPSTTY, &dev);
+ fd = -1;
+ ioctl(snp_io, SNPSTTY, &fd);
}
static void
OpenPOWER on IntegriCloud