diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 23:21:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 23:21:47 +0000 |
commit | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (patch) | |
tree | 79166b700c497fbe798b6031e5bbff97e0933573 /coreutils/cmp.c | |
parent | 670a6626cabc1498f32b35f959591f8621d8447e (diff) |
remove bb_printf and the like
Diffstat (limited to 'coreutils/cmp.c')
-rw-r--r-- | coreutils/cmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/cmp.c b/coreutils/cmp.c index 07858c64e..2b923c845 100644 --- a/coreutils/cmp.c +++ b/coreutils/cmp.c @@ -96,7 +96,7 @@ int cmp_main(int argc, char **argv) c1 = c2; } if (c1 == EOF) { - xferror(fp1, filename1); + die_if_ferror(fp1, filename1); fmt = fmt_eof; /* Well, no error, so it must really be EOF. */ outfile = stderr; /* There may have been output to stdout (option -l), so @@ -107,7 +107,7 @@ int cmp_main(int argc, char **argv) if (opt & CMP_OPT_l) { line_pos = c1; /* line_pos is unused in the -l case. */ } - bb_fprintf(outfile, fmt, filename1, filename2, char_pos, line_pos, c2); + fprintf(outfile, fmt, filename1, filename2, char_pos, line_pos, c2); if (opt) { /* This must be -l since not -s. */ /* If we encountered an EOF, * the while check will catch it. */ @@ -121,8 +121,8 @@ int cmp_main(int argc, char **argv) } } while (c1 != EOF); - xferror(fp1, filename1); - xferror(fp2, filename2); + die_if_ferror(fp1, filename1); + die_if_ferror(fp2, filename2); - bb_fflush_stdout_and_exit(retval); + fflush_stdout_and_exit(retval); } |