summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.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/top.c
parent8b7d13b0e05b4a89823fc6e4ea4e6043f9540c72 (diff)
use STD{IN,OUT,ERR}_FILENO
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r--usr.bin/top/top.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index b53d0e1cda5..54d2ecbe36c 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.35 2004/10/07 06:26:12 otto Exp $ */
+/* $OpenBSD: top.c,v 1.36 2005/04/13 02:33:09 deraadt Exp $ */
/*
* Top users/processes display for Unix
@@ -593,7 +593,7 @@ rundisplay(void)
* command strchr
*/
while (1) {
- len = read(0, &ch, 1);
+ len = read(STDIN_FILENO, &ch, 1);
if (len == -1 && errno == EINTR)
continue;
if (len == 0)
@@ -650,7 +650,7 @@ rundisplay(void)
standout("Hit any key to continue: ");
fflush(stdout);
while (1) {
- len = read(0, &ch, 1);
+ len = read(STDIN_FILENO, &ch, 1);
if (len == -1 && errno == EINTR)
continue;
if (len == 0)
@@ -673,7 +673,7 @@ rundisplay(void)
standout("Hit any key to continue: ");
fflush(stdout);
while (1) {
- len = read(0, &ch, 1);
+ len = read(STDIN_FILENO, &ch, 1);
if (len == -1 && errno == EINTR)
continue;
if (len == 0)