summaryrefslogtreecommitdiff
path: root/usr.bin/doscmd/tty.c
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2001-07-26 11:02:39 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2001-07-26 11:02:39 +0000
commite1b4d8d0746069292d84708b0e11b17a7e1ef5e0 (patch)
treebd2ac2627dbeab7d3427432bb98d2c73085b61c1 /usr.bin/doscmd/tty.c
parent8155f5e200803441caa6e1bba5d9fa1f836d232f (diff)
Notes
Diffstat (limited to 'usr.bin/doscmd/tty.c')
-rw-r--r--usr.bin/doscmd/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doscmd/tty.c b/usr.bin/doscmd/tty.c
index 76c527f656312..6427b109da594 100644
--- a/usr.bin/doscmd/tty.c
+++ b/usr.bin/doscmd/tty.c
@@ -668,7 +668,7 @@ debug_event(void *pfd)
char *ep;
int r;
- r = read(0, ibuf + icnt, sizeof(ibuf) - icnt);
+ r = read(STDIN_FILENO, ibuf + icnt, sizeof(ibuf) - icnt);
if (r <= 0)
return;
@@ -1729,7 +1729,7 @@ tty_read(REGISTERS, int flag)
if ((flag & TTYF_REDIRECT) && redirect0) {
char c;
- if (read(0, &c, 1) != 1)
+ if (read(STDIN_FILENO, &c, 1) != 1)
return(-1);
if (c == '\n')
c = '\r';