diff options
author | Rob Landley <rob@landley.net> | 2006-05-26 23:44:51 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-26 23:44:51 +0000 |
commit | 8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /archival/dpkg.c | |
parent | 5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff) | |
download | busybox-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 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 3621db41d..2895f4f38 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -1484,10 +1484,10 @@ static void init_archive_deb_control(archive_handle_t *ar_handle) | |||
1484 | 1484 | ||
1485 | /* We don't care about data.tar.* or debian-binary, just control.tar.* */ | 1485 | /* We don't care about data.tar.* or debian-binary, just control.tar.* */ |
1486 | #ifdef CONFIG_FEATURE_DEB_TAR_GZ | 1486 | #ifdef CONFIG_FEATURE_DEB_TAR_GZ |
1487 | ar_handle->accept = llist_add_to(NULL, "control.tar.gz"); | 1487 | llist_add_to(&(ar_handle->accept), "control.tar.gz"); |
1488 | #endif | 1488 | #endif |
1489 | #ifdef CONFIG_FEATURE_DEB_TAR_BZ2 | 1489 | #ifdef CONFIG_FEATURE_DEB_TAR_BZ2 |
1490 | ar_handle->accept = llist_add_to(ar_handle->accept, "control.tar.bz2"); | 1490 | llist_add_to(&(ar_handle->accept), "control.tar.bz2"); |
1491 | #endif | 1491 | #endif |
1492 | 1492 | ||
1493 | /* Assign the tar handle as a subarchive of the ar handle */ | 1493 | /* Assign the tar handle as a subarchive of the ar handle */ |
@@ -1506,10 +1506,10 @@ static void init_archive_deb_data(archive_handle_t *ar_handle) | |||
1506 | 1506 | ||
1507 | /* We don't care about control.tar.* or debian-binary, just data.tar.* */ | 1507 | /* We don't care about control.tar.* or debian-binary, just data.tar.* */ |
1508 | #ifdef CONFIG_FEATURE_DEB_TAR_GZ | 1508 | #ifdef CONFIG_FEATURE_DEB_TAR_GZ |
1509 | ar_handle->accept = llist_add_to(NULL, "data.tar.gz"); | 1509 | llist_add_to(&(ar_handle->accept), "data.tar.gz"); |
1510 | #endif | 1510 | #endif |
1511 | #ifdef CONFIG_FEATURE_DEB_TAR_BZ2 | 1511 | #ifdef CONFIG_FEATURE_DEB_TAR_BZ2 |
1512 | ar_handle->accept = llist_add_to(ar_handle->accept, "data.tar.bz2"); | 1512 | llist_add_to(&(ar_handle->accept), "data.tar.bz2"); |
1513 | #endif | 1513 | #endif |
1514 | 1514 | ||
1515 | /* Assign the tar handle as a subarchive of the ar handle */ | 1515 | /* Assign the tar handle as a subarchive of the ar handle */ |
@@ -1575,7 +1575,7 @@ static void unpack_package(deb_file_t *deb_file) | |||
1575 | while(all_control_files[i]) { | 1575 | while(all_control_files[i]) { |
1576 | char *c = (char *) xmalloc(3 + strlen(all_control_files[i])); | 1576 | char *c = (char *) xmalloc(3 + strlen(all_control_files[i])); |
1577 | sprintf(c, "./%s", all_control_files[i]); | 1577 | sprintf(c, "./%s", all_control_files[i]); |
1578 | accept_list= llist_add_to(accept_list, c); | 1578 | llist_add_to(&accept_list, c); |
1579 | i++; | 1579 | i++; |
1580 | } | 1580 | } |
1581 | archive_handle->sub_archive->accept = accept_list; | 1581 | archive_handle->sub_archive->accept = accept_list; |
@@ -1705,7 +1705,7 @@ int dpkg_main(int argc, char **argv) | |||
1705 | llist_t *control_list = NULL; | 1705 | llist_t *control_list = NULL; |
1706 | 1706 | ||
1707 | /* Extract the control file */ | 1707 | /* Extract the control file */ |
1708 | control_list = llist_add_to(NULL, "./control"); | 1708 | llist_add_to(&control_list, "./control"); |
1709 | archive_handle = init_archive_deb_ar(argv[optind]); | 1709 | archive_handle = init_archive_deb_ar(argv[optind]); |
1710 | init_archive_deb_control(archive_handle); | 1710 | init_archive_deb_control(archive_handle); |
1711 | deb_file[deb_count]->control_file = deb_extract_control_file_to_buffer(archive_handle, control_list); | 1711 | deb_file[deb_count]->control_file = deb_extract_control_file_to_buffer(archive_handle, control_list); |