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 /coreutils/split.c | |
| 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 'coreutils/split.c')
| -rw-r--r-- | coreutils/split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/split.c b/coreutils/split.c index 2306789f0..39f62e6dd 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
| @@ -98,7 +98,7 @@ int split_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | while (1) { | 100 | while (1) { |
| 101 | bytes_read = safe_read(0, read_buffer, READ_BUFFER_SIZE); | 101 | bytes_read = safe_read(STDIN_FILENO, read_buffer, READ_BUFFER_SIZE); |
| 102 | if (!bytes_read) | 102 | if (!bytes_read) |
| 103 | break; | 103 | break; |
| 104 | if (bytes_read < 0) | 104 | if (bytes_read < 0) |
| @@ -130,7 +130,7 @@ int split_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
| 130 | } | 130 | } |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | xwrite(1, src, to_write); | 133 | xwrite(STDOUT_FILENO, src, to_write); |
| 134 | bytes_read -= to_write; | 134 | bytes_read -= to_write; |
| 135 | src += to_write; | 135 | src += to_write; |
| 136 | } while (bytes_read); | 136 | } while (bytes_read); |
