aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-26 23:44:51 +0000
committerRob Landley <rob@landley.net>2006-05-26 23:44:51 +0000
commit8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch)
treeb717c772c6fef53c34b723341a8c5b12ccb57902 /findutils
parent5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff)
downloadbusybox-w32-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.gz
busybox-w32-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.bz2
busybox-w32-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.zip
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index e5b5e3242..fac296941 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -273,7 +273,7 @@ static void load_regexes_from_file(llist_t *fopt)
273 free(cur); 273 free(cur);
274 f = bb_xfopen(ffile, "r"); 274 f = bb_xfopen(ffile, "r");
275 while ((line = bb_get_chomped_line_from_file(f)) != NULL) { 275 while ((line = bb_get_chomped_line_from_file(f)) != NULL) {
276 pattern_head = llist_add_to(pattern_head, 276 llist_add_to(&pattern_head,
277 new_grep_list_data(line, PATTERN_MEM_A)); 277 new_grep_list_data(line, PATTERN_MEM_A));
278 } 278 }
279 } 279 }
@@ -373,7 +373,7 @@ int grep_main(int argc, char **argv)
373 else { 373 else {
374 char *pattern = new_grep_list_data(*argv++, 0); 374 char *pattern = new_grep_list_data(*argv++, 0);
375 375
376 pattern_head = llist_add_to(pattern_head, pattern); 376 llist_add_to(&pattern_head, pattern);
377 argc--; 377 argc--;
378 } 378 }
379 } 379 }