aboutsummaryrefslogtreecommitdiff
path: root/dc.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-06-28 22:15:26 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-06-28 22:15:26 +0000
commitaf98571c6c0491c8a3af7270c95fd2fb512f48c0 (patch)
tree0ac134f0a80036aec272b04c3a057ea2ae055b20 /dc.c
parent0dc5e061b462221bcefb3c5e998b89a27cfdd959 (diff)
downloadbusybox-w32-af98571c6c0491c8a3af7270c95fd2fb512f48c0.tar.gz
busybox-w32-af98571c6c0491c8a3af7270c95fd2fb512f48c0.tar.bz2
busybox-w32-af98571c6c0491c8a3af7270c95fd2fb512f48c0.zip
Yanked out the cstring_alloc() and cstring_lineFromFile() functions from
utility.c and replaced them with get_line_from_file() from the new grep.c. Also changed declaration in internal.h and replaced instances of cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested them and they worked fine. git-svn-id: svn://busybox.net/trunk/busybox@722 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'dc.c')
-rw-r--r--dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dc.c b/dc.c
index 31a5471c3..5bf3bc984 100644
--- a/dc.c
+++ b/dc.c
@@ -170,7 +170,7 @@ int dc_main(int argc, char **argv)
170 char *line = NULL; 170 char *line = NULL;
171 char *cursor = NULL; 171 char *cursor = NULL;
172 char *token = NULL; 172 char *token = NULL;
173 while ((line = cstring_lineFromFile(stdin))) { 173 while ((line = get_line_from_file(stdin))) {
174 cursor = line; 174 cursor = line;
175 len = number_of_tokens(line); 175 len = number_of_tokens(line);
176 for (i = 0; i < len; i++) { 176 for (i = 0; i < len; i++) {