X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fexport_image.c;h=784938e9c5b34d52670e83b7aa93336e42f412ee;hp=7e6d2789e198c93475462f5fcb21f265839ed7d3;hb=062465170ddb4520ca6fbc64a0f6e27e786de101;hpb=13c6ce3160fce7c40008d1d182325c8b42450d1e diff --git a/src/export_image.c b/src/export_image.c index 7e6d2789..784938e9 100644 --- a/src/export_image.c +++ b/src/export_image.c @@ -104,7 +104,6 @@ wimlib_export_image(WIMStruct *src_wim, int ret; struct wim_lookup_table *joined_tab, *src_wim_tab_save; struct wim_image_metadata *src_imd; - struct hlist_node *cur_node; struct list_head lte_list_head; struct wim_inode *inode; @@ -209,7 +208,7 @@ wimlib_export_image(WIMStruct *src_wim, for_lookup_table_entry(src_wim->lookup_table, lte_zero_out_refcnt, NULL); src_imd = wim_get_current_image_metadata(src_wim); INIT_LIST_HEAD(<e_list_head); - hlist_for_each_entry(inode, cur_node, &src_imd->inode_list, i_hlist) { + image_for_each_inode(inode, src_imd) { ret = inode_allocate_needed_ltes(inode, src_wim->lookup_table, dest_wim->lookup_table, @@ -235,7 +234,7 @@ wimlib_export_image(WIMStruct *src_wim, /* All memory allocations have been taken care of, so it's no longer * possible for this function to fail. Go ahead and update the lookup * table of the destination WIM and the boot index, if needed. */ - hlist_for_each_entry(inode, cur_node, &src_imd->inode_list, i_hlist) { + image_for_each_inode(inode, src_imd) { inode_move_ltes_to_table(inode, src_wim->lookup_table, dest_wim->lookup_table,