diff options
| author | mycroft <mycroft@NetBSD.org> | 1997-10-19 19:53:54 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1997-10-19 19:53:54 +0000 |
| commit | 6af5bbb01a5a318124e7cdda9e7ba07e3fb59b3b (patch) | |
| tree | 9781af4dc8e76c930c59eb48513b29085a95a736 /usr.sbin/videomode | |
| parent | d389f63196015ab2ede4ff0f7162841a49e568f1 (diff) | |
Use S_IS*(), not S_IF*.
Diffstat (limited to 'usr.sbin/videomode')
| -rw-r--r-- | usr.sbin/videomode/videomode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/videomode/videomode.c b/usr.sbin/videomode/videomode.c index ce9296422ab..3cc8c104f6a 100644 --- a/usr.sbin/videomode/videomode.c +++ b/usr.sbin/videomode/videomode.c @@ -1,4 +1,4 @@ -/* $NetBSD: videomode.c,v 1.3 1997/10/17 14:01:55 lukem Exp $ */ +/* $NetBSD: videomode.c,v 1.4 1997/10/19 19:55:56 mycroft Exp $ */ /* * Copyright (c) 1995 Christian E. Hopps @@ -100,7 +100,7 @@ get_grf() /* find out on which ite/grf we are */ if (fstat(0, &stb) == -1) err(1, "fstat 0"); - if (((stb.st_mode & S_IFMT) != S_IFCHR) || !isatty(0)) + if (!S_ISCHR(stb.st_mode) || !isatty(0)) errx(1, "stdin not a tty"); if (major(stb.st_rdev) != 13) errx(1, "stdin not an ite device"); |
