From: Eric Biggers Date: Sun, 7 Apr 2013 01:31:01 +0000 (-0500) Subject: wim_checksum_unhashed_streams(): Use image_for_each_unhashed_stream_safe() X-Git-Tag: v1.3.3~83 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=c354fe6c159dec97bf955a0ab6ee35a868fc9719 wim_checksum_unhashed_streams(): Use image_for_each_unhashed_stream_safe() --- 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;