diff options
author | Rob Landley | 2006-05-26 23:44:51 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-26 23:44:51 +0000 |
commit | 8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /archival/tar.c | |
parent | 5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff) | |
download | busybox-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.zip busybox-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.gz |
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index e4008b0..f3594f6 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -551,7 +551,7 @@ static llist_t *append_file_list_to_list(llist_t *list) cur = cur->link; free(tmp); while ((line = bb_get_chomped_line_from_file(src_stream)) != NULL) - newlist = llist_add_to(newlist, line); + llist_add_to(&newlist, line); fclose(src_stream); } return newlist; @@ -800,7 +800,7 @@ int tar_main(int argc, char **argv) if (filename_ptr > argv[optind]) *filename_ptr = '\0'; - tar_handle->accept = llist_add_to(tar_handle->accept, argv[optind]); + llist_add_to(&(tar_handle->accept), argv[optind]); optind++; } |