From f0ed376eda5d5c25d270e5100a881fb2d801bee6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 26 Oct 2006 23:21:47 +0000 Subject: remove bb_printf and the like --- coreutils/tee.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils/tee.c') diff --git a/coreutils/tee.c b/coreutils/tee.c index a194153..f0e1fad 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c @@ -85,7 +85,7 @@ int tee_main(int argc, char **argv) * output files. Since we know that the first entry in the output * file table is stdout, we can save one "if ferror" test by * setting the first entry to stdin and checking stdout error - * status with bb_fflush_stdout_and_exit()... although fflush()ing + * status with fflush_stdout_and_exit()... although fflush()ing * is unnecessary here. */ p = files; @@ -93,8 +93,8 @@ int tee_main(int argc, char **argv) do { /* Now check for (input and) output errors. */ /* Checking ferror should be sufficient, but we may want to fclose. * If we do, remember not to close stdin! */ - xferror(*p, filenames[(int)(p - files)]); + die_if_ferror(*p, filenames[(int)(p - files)]); } while (*++p); - bb_fflush_stdout_and_exit(retval); + fflush_stdout_and_exit(retval); } -- cgit v1.1