From c354fe6c159dec97bf955a0ab6ee35a868fc9719 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 6 Apr 2013 20:31:01 -0500 Subject: [PATCH] wim_checksum_unhashed_streams(): Use image_for_each_unhashed_stream_safe() --- src/wim.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wim.c b/src/wim.c index 25b5c336..77628120 100644 --- a/src/wim.c +++ b/src/wim.c @@ -627,10 +627,8 @@ wim_checksum_unhashed_streams(WIMStruct *w) int ret; for (int i = 0; i < w->hdr.image_count; i++) { struct wim_lookup_table_entry *lte, *tmp; - list_for_each_entry_safe(lte, tmp, - &w->image_metadata[i]->unhashed_streams, - unhashed_list) - { + struct wim_image_metadata *imd = w->image_metadata[i]; + image_for_each_unhashed_stream_safe(lte, tmp, imd) { ret = hash_unhashed_stream(lte, w->lookup_table, NULL); if (ret) return ret; -- 2.43.0