aboutsummaryrefslogtreecommitdiffstats
path: root/cmd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.c')
-rw-r--r--cmd2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.c b/cmd2.c
index 301d9ae..06892ed 100644
--- a/cmd2.c
+++ b/cmd2.c
@@ -1059,7 +1059,7 @@ static int get_one_char __P1 (int,timeout)
errmsg("select");
return -1;
}
- while ((err = tty_read(tty_read_fd, &c, 1)) < 0 && errno == EINTR)
+ while ((err = tty_read(&c, 1)) < 0 && errno == EINTR)
;
if (err != 1) {
errmsg("read from tty");