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 /libbb/wfopen_input.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 'libbb/wfopen_input.c')
-rw-r--r-- | libbb/wfopen_input.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libbb/wfopen_input.c b/libbb/wfopen_input.c index d764f1d06..3da855fe6 100644 --- a/libbb/wfopen_input.c +++ b/libbb/wfopen_input.c | |||
@@ -14,18 +14,17 @@ | |||
14 | * Note: We also consider "" to main stdin (for 'cmp' at least). | 14 | * Note: We also consider "" to main stdin (for 'cmp' at least). |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <stdio.h> | 17 | #include "libbb.h" |
18 | #include <sys/stat.h> | ||
19 | #include <libbb.h> | ||
20 | 18 | ||
21 | FILE *bb_wfopen_input(const char *filename) | 19 | FILE *fopen_or_warn_stdin(const char *filename) |
22 | { | 20 | { |
23 | FILE *fp = stdin; | 21 | FILE *fp = stdin; |
24 | 22 | ||
25 | if ((filename != bb_msg_standard_input) | 23 | if (filename != bb_msg_standard_input |
26 | && filename[0] && ((filename[0] != '-') || filename[1]) | 24 | && filename[0] |
25 | && (filename[0] != '-' || filename[1]) | ||
27 | ) { | 26 | ) { |
28 | fp = bb_wfopen(filename, "r"); | 27 | fp = fopen_or_warn(filename, "r"); |
29 | } | 28 | } |
30 | 29 | ||
31 | return fp; | 30 | return fp; |