rename functions to more understandable names

This commit is contained in:
Denis Vlasenko
2006-10-26 23:25:17 +00:00
parent f0ed376eda
commit ddec5af6b0
27 changed files with 63 additions and 68 deletions

View File

@@ -20,7 +20,7 @@ int readahead_main(int argc, char **argv)
if (argc == 1) bb_show_usage();
while (*++argv) {
if ((f = bb_wfopen(*argv, "r")) != NULL) {
if ((f = fopen_or_warn(*argv, "r")) != NULL) {
int r, fd=fileno(f);
r = readahead(fd, 0, fdlength(fd));

View File

@@ -45,7 +45,7 @@ int strings_main(int argc, char **argv)
}
do {
file = bb_wfopen(*argv, "r");
file = fopen_or_warn(*argv, "r");
if (file) {
PIPE:
count = 0;
@@ -75,7 +75,7 @@ PIPE:
}
count++;
} while (c != EOF);
bb_fclose_nonstdin(file);
fclose_if_not_stdin(file);
} else {
status = EXIT_FAILURE;
}