diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
commit | 9bfb9eedcddf3ab4e79532e863cf16c5ff381090 (patch) | |
tree | bd2ac2627dbeab7d3427432bb98d2c73085b61c1 /usr.bin/window/wwrint.c | |
parent | 505859f37d54f23b1ebc688851be182d4e1332c8 (diff) | |
download | FreeBSD-src-9bfb9eedcddf3ab4e79532e863cf16c5ff381090.zip FreeBSD-src-9bfb9eedcddf3ab4e79532e863cf16c5ff381090.tar.gz |
Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.
Submitted by: David Hill <david@phobia.ms>
Diffstat (limited to 'usr.bin/window/wwrint.c')
-rw-r--r-- | usr.bin/window/wwrint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/window/wwrint.c b/usr.bin/window/wwrint.c index 5d753f5..3332273 100644 --- a/usr.bin/window/wwrint.c +++ b/usr.bin/window/wwrint.c @@ -46,6 +46,7 @@ static char rcsid[] = #include <fcntl.h> #endif +#include <unistd.h> /* * Tty input interrupt handler. * (1) Read input into buffer (wwib*). @@ -68,7 +69,7 @@ wwrint() /* we have set c_cc[VMIN] to 0 */ (void) fcntl(0, F_SETFL, O_NONBLOCK|wwnewtty.ww_fflags); #endif - n = read(0, wwibq, wwibe - wwibq); + n = read(STDIN_FILENO, wwibq, wwibe - wwibq); #if defined(OLD_TTY) || defined(VMIN_BUG) (void) fcntl(0, F_SETFL, wwnewtty.ww_fflags); #endif |