From 5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 19 May 2008 09:48:17 +0000 Subject: - use STD*_FILENO some more. No object-code changes --- procps/nmeter.c | 2 +- procps/top.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'procps') diff --git a/procps/nmeter.c b/procps/nmeter.c index b6e754b7a..798afcf16 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c @@ -98,7 +98,7 @@ static void print_outbuf(void) { int sz = cur_outbuf - outbuf; if (sz > 0) { - xwrite(1, outbuf, sz); + xwrite(STDOUT_FILENO, outbuf, sz); cur_outbuf = outbuf; } } diff --git a/procps/top.c b/procps/top.c index de30ffb28..b861deb66 100644 --- a/procps/top.c +++ b/procps/top.c @@ -888,7 +888,7 @@ int top_main(int argc ATTRIBUTE_UNUSED, char **argv) /* batch mode, or EOF on stdin ("top 0) { - if (safe_read(0, &c, 1) != 1) { /* error/EOF? */ + if (safe_read(STDIN_FILENO, &c, 1) != 1) { /* error/EOF? */ option_mask32 |= OPT_EOF; continue; } -- cgit v1.2.3