aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-26 10:26:10 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-26 10:26:10 +0000
commit855bcf4451ce90fad56ec0819af0916d850ba76f (patch)
tree60791afa21a263169d7bec2e91cbf9f14881b5ac /coreutils
parent260176ef3b6762089deb20d740a036563bbfbf49 (diff)
downloadbusybox-w32-855bcf4451ce90fad56ec0819af0916d850ba76f.tar.gz
busybox-w32-855bcf4451ce90fad56ec0819af0916d850ba76f.tar.bz2
busybox-w32-855bcf4451ce90fad56ec0819af0916d850ba76f.zip
Use STDIN_FILENO rather than '0'
git-svn-id: svn://busybox.net/trunk/busybox@8871 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c
index 25c108725..6ec1d6dff 100644
--- a/coreutils/tee.c
+++ b/coreutils/tee.c
@@ -78,7 +78,7 @@ int tee_main(int argc, char **argv)
78 *p = NULL; /* Store the sentinal value. */ 78 *p = NULL; /* Store the sentinal value. */
79 79
80#ifdef CONFIG_FEATURE_TEE_USE_BLOCK_IO 80#ifdef CONFIG_FEATURE_TEE_USE_BLOCK_IO
81 while ((c = read(0, buf, BUFSIZ)) != 0) { 81 while ((c = read(STDIN_FILENO, buf, BUFSIZ)) != 0) {
82 for (p=files ; *p ; p++) { 82 for (p=files ; *p ; p++) {
83 fwrite(buf, 1, c, *p); 83 fwrite(buf, 1, c, *p);
84 } 84 }