Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-27 03:25:17 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-27 03:25:17 +0400
commitddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0 (patch)
treef4f2aa58fa669aed6e2c50bb7aa648a79ec1873d /coreutils/sum.c
parentf0ed376eda5d5c25d270e5100a881fb2d801bee6 (diff)
rename functions to more understandable names
Diffstat (limited to 'coreutils/sum.c')
-rw-r--r--coreutils/sum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/sum.c b/coreutils/sum.c
index d663e34dd..93f4e22eb 100644
--- a/coreutils/sum.c
+++ b/coreutils/sum.c
@@ -38,7 +38,7 @@ static int bsd_sum_file(const char *file, int print_name)
fp = stdin;
have_read_stdin++;
} else {
- fp = bb_wfopen(file, "r");
+ fp = fopen_or_warn(file, "r");
if (fp == NULL)
goto out;
}
@@ -52,11 +52,11 @@ static int bsd_sum_file(const char *file, int print_name)
if (ferror(fp)) {
bb_perror_msg(file);
- bb_fclose_nonstdin(fp);
+ fclose_if_not_stdin(fp);
goto out;
}
- if (bb_fclose_nonstdin(fp) == EOF) {
+ if (fclose_if_not_stdin(fp) == EOF) {
bb_perror_msg(file);
goto out;
}