diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:48:17 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:48:17 +0000 |
commit | 5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d (patch) | |
tree | 44b7cf5fb706b0816dd4525782ca8c37d07c2f43 /miscutils | |
parent | 636a1f85e89432601c59cdc3239fc867b4adf051 (diff) | |
download | busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.gz busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.bz2 busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.zip |
- use STD*_FILENO some more. No object-code changes
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/hdparm.c | 2 | ||||
-rw-r--r-- | miscutils/less.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 7afa9ff86..8c0e47334 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -1924,7 +1924,7 @@ static void identify_from_stdin(void) | |||
1924 | unsigned char *b = (unsigned char *)buf; | 1924 | unsigned char *b = (unsigned char *)buf; |
1925 | int i; | 1925 | int i; |
1926 | 1926 | ||
1927 | xread(0, buf, 1280); | 1927 | xread(STDIN_FILENO, buf, 1280); |
1928 | 1928 | ||
1929 | // Convert the newline-separated hex data into an identify block. | 1929 | // Convert the newline-separated hex data into an identify block. |
1930 | 1930 | ||
diff --git a/miscutils/less.c b/miscutils/less.c index f69bce97e..0529b2047 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -273,7 +273,7 @@ static void read_lines(void) | |||
273 | /* if no unprocessed chars left, eat more */ | 273 | /* if no unprocessed chars left, eat more */ |
274 | if (readpos >= readeof) { | 274 | if (readpos >= readeof) { |
275 | ndelay_on(0); | 275 | ndelay_on(0); |
276 | eof_error = safe_read(0, readbuf, sizeof(readbuf)); | 276 | eof_error = safe_read(STDIN_FILENO, readbuf, sizeof(readbuf)); |
277 | ndelay_off(0); | 277 | ndelay_off(0); |
278 | readpos = 0; | 278 | readpos = 0; |
279 | readeof = eof_error; | 279 | readeof = eof_error; |