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 --- miscutils/hdparm.c | 2 +- miscutils/less.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils') diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 7afa9ff..8c0e473 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -1924,7 +1924,7 @@ static void identify_from_stdin(void) unsigned char *b = (unsigned char *)buf; int i; - xread(0, buf, 1280); + xread(STDIN_FILENO, buf, 1280); // Convert the newline-separated hex data into an identify block. diff --git a/miscutils/less.c b/miscutils/less.c index f69bce9..0529b20 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -273,7 +273,7 @@ static void read_lines(void) /* if no unprocessed chars left, eat more */ if (readpos >= readeof) { ndelay_on(0); - eof_error = safe_read(0, readbuf, sizeof(readbuf)); + eof_error = safe_read(STDIN_FILENO, readbuf, sizeof(readbuf)); ndelay_off(0); readpos = 0; readeof = eof_error; -- cgit v1.1