diff options
author | Denis Vlasenko | 2006-10-26 23:25:17 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-26 23:25:17 +0000 |
commit | ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0 (patch) | |
tree | f4f2aa58fa669aed6e2c50bb7aa648a79ec1873d /libbb/wfopen_input.c | |
parent | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (diff) | |
download | busybox-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.zip busybox-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.tar.gz |
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 d764f1d..3da855f 100644 --- a/libbb/wfopen_input.c +++ b/libbb/wfopen_input.c @@ -14,18 +14,17 @@ * Note: We also consider "" to main stdin (for 'cmp' at least). */ -#include <stdio.h> -#include <sys/stat.h> -#include <libbb.h> +#include "libbb.h" -FILE *bb_wfopen_input(const char *filename) +FILE *fopen_or_warn_stdin(const char *filename) { FILE *fp = stdin; - if ((filename != bb_msg_standard_input) - && filename[0] && ((filename[0] != '-') || filename[1]) + if (filename != bb_msg_standard_input + && filename[0] + && (filename[0] != '-' || filename[1]) ) { - fp = bb_wfopen(filename, "r"); + fp = fopen_or_warn(filename, "r"); } return fp; |