diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 23:25:17 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 23:25:17 +0000 |
commit | ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0 (patch) | |
tree | f4f2aa58fa669aed6e2c50bb7aa648a79ec1873d /coreutils/fold.c | |
parent | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (diff) | |
download | busybox-w32-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.tar.gz busybox-w32-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.tar.bz2 busybox-w32-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.zip |
rename functions to more understandable names
Diffstat (limited to 'coreutils/fold.c')
-rw-r--r-- | coreutils/fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c index e33be5594..9ca693dff 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -70,7 +70,7 @@ int fold_main(int argc, char **argv) | |||
70 | } | 70 | } |
71 | 71 | ||
72 | do { | 72 | do { |
73 | FILE *istream = bb_wfopen_input(*argv); | 73 | FILE *istream = fopen_or_warn_stdin(*argv); |
74 | int c; | 74 | int c; |
75 | int column = 0; /* Screen column where next char will go. */ | 75 | int column = 0; /* Screen column where next char will go. */ |
76 | int offset_out = 0; /* Index in `line_out' for next char. */ | 76 | int offset_out = 0; /* Index in `line_out' for next char. */ |
@@ -144,7 +144,7 @@ rescan: | |||
144 | fwrite(line_out, sizeof(char), (size_t) offset_out, stdout); | 144 | fwrite(line_out, sizeof(char), (size_t) offset_out, stdout); |
145 | } | 145 | } |
146 | 146 | ||
147 | if (ferror(istream) || bb_fclose_nonstdin(istream)) { | 147 | if (ferror(istream) || fclose_if_not_stdin(istream)) { |
148 | bb_perror_msg("%s", *argv); /* Avoid multibyte problems. */ | 148 | bb_perror_msg("%s", *argv); /* Avoid multibyte problems. */ |
149 | errs |= EXIT_FAILURE; | 149 | errs |= EXIT_FAILURE; |
150 | } | 150 | } |