diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-13 02:33:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-13 02:33:10 +0000 |
commit | 1aa7b0eba47e9452ea6454af501b33b70e05d060 (patch) | |
tree | 046eecb5edae4ab0d192fb5297f35203fc8b44ed /usr.bin/mg | |
parent | 8b7d13b0e05b4a89823fc6e4ea4e6043f9540c72 (diff) |
use STD{IN,OUT,ERR}_FILENO
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/ttyio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/ttyio.c b/usr.bin/mg/ttyio.c index 2858f1c99d4..782ac22bda4 100644 --- a/usr.bin/mg/ttyio.c +++ b/usr.bin/mg/ttyio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttyio.c,v 1.26 2005/04/03 02:09:28 db Exp $ */ +/* $OpenBSD: ttyio.c,v 1.27 2005/04/13 02:33:08 deraadt Exp $ */ /* * POSIX terminal I/O. @@ -162,7 +162,7 @@ ttgetc(void) int ret; do { - ret = read(0, &c, 1); + ret = read(STDIN_FILENO, &c, 1); if (ret == -1 && errno == EINTR) { if (winch_flag) { refresh(0, 0); |