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/sum.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/sum.c')
-rw-r--r-- | coreutils/sum.c | 6 |
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) | |||
38 | fp = stdin; | 38 | fp = stdin; |
39 | have_read_stdin++; | 39 | have_read_stdin++; |
40 | } else { | 40 | } else { |
41 | fp = bb_wfopen(file, "r"); | 41 | fp = fopen_or_warn(file, "r"); |
42 | if (fp == NULL) | 42 | if (fp == NULL) |
43 | goto out; | 43 | goto out; |
44 | } | 44 | } |
@@ -52,11 +52,11 @@ static int bsd_sum_file(const char *file, int print_name) | |||
52 | 52 | ||
53 | if (ferror(fp)) { | 53 | if (ferror(fp)) { |
54 | bb_perror_msg(file); | 54 | bb_perror_msg(file); |
55 | bb_fclose_nonstdin(fp); | 55 | fclose_if_not_stdin(fp); |
56 | goto out; | 56 | goto out; |
57 | } | 57 | } |
58 | 58 | ||
59 | if (bb_fclose_nonstdin(fp) == EOF) { | 59 | if (fclose_if_not_stdin(fp) == EOF) { |
60 | bb_perror_msg(file); | 60 | bb_perror_msg(file); |
61 | goto out; | 61 | goto out; |
62 | } | 62 | } |