diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-28 22:15:26 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-28 22:15:26 +0000 |
commit | af98571c6c0491c8a3af7270c95fd2fb512f48c0 (patch) | |
tree | 0ac134f0a80036aec272b04c3a057ea2ae055b20 /coreutils/sort.c | |
parent | 0dc5e061b462221bcefb3c5e998b89a27cfdd959 (diff) | |
download | busybox-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 'coreutils/sort.c')
-rw-r--r-- | coreutils/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c index 93062faa4..a28122d51 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -84,7 +84,7 @@ static Line *line_newFromFile(FILE * src) | |||
84 | Line *self; | 84 | Line *self; |
85 | char *cstring = NULL; | 85 | char *cstring = NULL; |
86 | 86 | ||
87 | if ((cstring = cstring_lineFromFile(src))) { | 87 | if ((cstring = get_line_from_file(src))) { |
88 | self = line_alloc(); | 88 | self = line_alloc(); |
89 | if (self == NULL) { | 89 | if (self == NULL) { |
90 | return NULL; | 90 | return NULL; |
@@ -304,4 +304,4 @@ int sort_main(int argc, char **argv) | |||
304 | return(0); | 304 | return(0); |
305 | } | 305 | } |
306 | 306 | ||
307 | /* $Id: sort.c,v 1.17 2000/06/19 17:25:40 andersen Exp $ */ | 307 | /* $Id: sort.c,v 1.18 2000/06/28 22:15:26 markw Exp $ */ |