summaryrefslogtreecommitdiff
path: root/usr.bin/top/display.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-13 02:33:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-13 02:33:10 +0000
commit1aa7b0eba47e9452ea6454af501b33b70e05d060 (patch)
tree046eecb5edae4ab0d192fb5297f35203fc8b44ed /usr.bin/top/display.c
parent8b7d13b0e05b4a89823fc6e4ea4e6043f9540c72 (diff)
use STD{IN,OUT,ERR}_FILENO
Diffstat (limited to 'usr.bin/top/display.c')
-rw-r--r--usr.bin/top/display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c
index 243fdc6af4f..f5d1e289c77 100644
--- a/usr.bin/top/display.c
+++ b/usr.bin/top/display.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: display.c,v 1.18 2004/06/13 18:49:02 otto Exp $ */
+/* $OpenBSD: display.c,v 1.19 2005/04/13 02:33:09 deraadt Exp $ */
/*
* Top users/processes display for Unix
@@ -764,7 +764,7 @@ readline(char *buffer, int size, int numeric)
size -= 1;
/* read loop */
- while ((fflush(stdout), (len = read(0, ptr, 1)) > 0)) {
+ while ((fflush(stdout), (len = read(STDIN_FILENO, ptr, 1)) > 0)) {
if (len == 0 || leaveflag) {
end_screen();