aboutsummaryrefslogtreecommitdiff
path: root/coreutils/wc.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-26 23:25:17 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-26 23:25:17 +0000
commit467f463615e7329b267abea02da9ed9cedd2382b (patch)
treef4f2aa58fa669aed6e2c50bb7aa648a79ec1873d /coreutils/wc.c
parent6dc3a21627db11fa0f374afe29a6bbf4f89c8b64 (diff)
downloadbusybox-w32-467f463615e7329b267abea02da9ed9cedd2382b.tar.gz
busybox-w32-467f463615e7329b267abea02da9ed9cedd2382b.tar.bz2
busybox-w32-467f463615e7329b267abea02da9ed9cedd2382b.zip
rename functions to more understandable names
git-svn-id: svn://busybox.net/trunk/busybox@16447 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r--coreutils/wc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c
index ebae5f69f..4b76e5499 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -107,7 +107,7 @@ int wc_main(int argc, char **argv)
107 107
108 while ((arg = *argv++) != 0) { 108 while ((arg = *argv++) != 0) {
109 ++num_files; 109 ++num_files;
110 fp = bb_wfopen_input(arg); 110 fp = fopen_or_warn_stdin(arg);
111 if (!fp) { 111 if (!fp) {
112 status = EXIT_FAILURE; 112 status = EXIT_FAILURE;
113 continue; 113 continue;
@@ -172,7 +172,7 @@ int wc_main(int argc, char **argv)
172 } 172 }
173 totals[WC_LENGTH] -= counts[WC_LENGTH]; 173 totals[WC_LENGTH] -= counts[WC_LENGTH];
174 174
175 bb_fclose_nonstdin(fp); 175 fclose_if_not_stdin(fp);
176 176
177 OUTPUT: 177 OUTPUT:
178 /* coreutils wc tries hard to print pretty columns 178 /* coreutils wc tries hard to print pretty columns