diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-09-19 13:48:45 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-09-19 13:48:45 +0000 |
| commit | 6ed0b39d28f63631f0e6dc1f26b84ec0d8b1d5b4 (patch) | |
| tree | 8062ddf49e66f6cc93932a7d6e93c8b57aadfe32 /usr.sbin/watch | |
| parent | db2dc2cd01c43f48de3100f4d41df43c4e65b228 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/watch')
| -rw-r--r-- | usr.sbin/watch/watch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index a062ae02d67a..11a80af0416a 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 |
