Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 13:48:17 +0400
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 13:48:17 +0400
commit5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d (patch)
tree44b7cf5fb706b0816dd4525782ca8c37d07c2f43 /coreutils
parent636a1f85e89432601c59cdc3239fc867b4adf051 (diff)
- use STD*_FILENO some more. No object-code changes
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/split.c4
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)
}
while (1) {
- bytes_read = safe_read(0, read_buffer, READ_BUFFER_SIZE);
+ bytes_read = safe_read(STDIN_FILENO, read_buffer, READ_BUFFER_SIZE);
if (!bytes_read)
break;
if (bytes_read < 0)
@@ -130,7 +130,7 @@ int split_main(int argc ATTRIBUTE_UNUSED, char **argv)
}
}
- xwrite(1, src, to_write);
+ xwrite(STDOUT_FILENO, src, to_write);
bytes_read -= to_write;
src += to_write;
} while (bytes_read);