diff options
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r-- | coreutils/tee.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index a194153e0..f0e1fad86 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -85,7 +85,7 @@ int tee_main(int argc, char **argv) | |||
85 | * output files. Since we know that the first entry in the output | 85 | * output files. Since we know that the first entry in the output |
86 | * file table is stdout, we can save one "if ferror" test by | 86 | * file table is stdout, we can save one "if ferror" test by |
87 | * setting the first entry to stdin and checking stdout error | 87 | * setting the first entry to stdin and checking stdout error |
88 | * status with bb_fflush_stdout_and_exit()... although fflush()ing | 88 | * status with fflush_stdout_and_exit()... although fflush()ing |
89 | * is unnecessary here. */ | 89 | * is unnecessary here. */ |
90 | 90 | ||
91 | p = files; | 91 | p = files; |
@@ -93,8 +93,8 @@ int tee_main(int argc, char **argv) | |||
93 | do { /* Now check for (input and) output errors. */ | 93 | do { /* Now check for (input and) output errors. */ |
94 | /* Checking ferror should be sufficient, but we may want to fclose. | 94 | /* Checking ferror should be sufficient, but we may want to fclose. |
95 | * If we do, remember not to close stdin! */ | 95 | * If we do, remember not to close stdin! */ |
96 | xferror(*p, filenames[(int)(p - files)]); | 96 | die_if_ferror(*p, filenames[(int)(p - files)]); |
97 | } while (*++p); | 97 | } while (*++p); |
98 | 98 | ||
99 | bb_fflush_stdout_and_exit(retval); | 99 | fflush_stdout_and_exit(retval); |
100 | } | 100 | } |