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

@ -2771,7 +2771,7 @@ tryprocpt(void)
char line[100], ptname[100], devname[120], *s;
int ma, mi, sz;
procpt = bb_wfopen("/proc/partitions", "r");
procpt = fopen_or_warn("/proc/partitions", "r");
while (fgets(line, sizeof(line), procpt)) {
if (sscanf(line, " %d %d %d %[^\n ]",

View File

@ -81,7 +81,7 @@ int more_main(int argc, char **argv)
if (argc == 0) {
file = stdin;
} else
file = bb_wfopen(*argv, "r");
file = fopen_or_warn(*argv, "r");
if(file==0)
goto loop;