bb_get_[chomped]line_from_file wasn't descriptive enough.

Renaming...
This commit is contained in:
Denis Vlasenko 2006-10-12 22:43:20 +00:00
parent 372686bde7
commit 2d5ca60bfb
20 changed files with 33 additions and 32 deletions

View file

@ -904,7 +904,7 @@ restart:
if (rfile) {
char *line;
while ((line = bb_get_chomped_line_from_file(rfile))
while ((line = xmalloc_getline(rfile))
!= NULL)
append(line);
xprint_and_close_file(rfile);
@ -1099,7 +1099,7 @@ static void add_files_link(llist_t *opt_f)
if (!opt_f) return;
add_files_link(opt_f->link);
cmdfile = xfopen(opt_f->data, "r");
while ((line = bb_get_chomped_line_from_file(cmdfile)) != NULL) {
while ((line = xmalloc_getline(cmdfile)) != NULL) {
add_cmd(line);
free(line);
}