From 2d5ca60bfb66e0ba7340ab9b4696b872f00adf7c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 12 Oct 2006 22:43:20 +0000 Subject: bb_get_[chomped]line_from_file wasn't descriptive enough. Renaming... --- editors/sed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/sed.c') diff --git a/editors/sed.c b/editors/sed.c index 7dba8b456..30f35ce22 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -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); } -- cgit v1.2.3