X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwim.c;h=933cfd73032f20f927c06aced94709eb3ec83e93;hb=81be60d782a4b4b8ae2e40141fc42b6e0e2d2706;hp=b2ed8d98b77b58c1f439818e81f6dcf655482198;hpb=b0b65688a9fb875e464457ee6449b8793f0f8a03;p=wimlib diff --git a/src/wim.c b/src/wim.c index b2ed8d98..933cfd73 100644 --- a/src/wim.c +++ b/src/wim.c @@ -139,13 +139,6 @@ int wim_hdr_flags_compression_type(int wim_hdr_flags) } } -int wim_resource_compression_type(const WIMStruct *w, - const struct resource_entry *entry) -{ - int wim_ctype = wimlib_get_compression_type(w); - return resource_compression_type(wim_ctype, entry->flags); -} - /* * Creates a WIMStruct for a new WIM file. */ @@ -223,7 +216,7 @@ int wimlib_select_image(WIMStruct *w, int image) #ifdef ENABLE_DEBUG DEBUG("Reading metadata resource specified by the following " "lookup table entry:"); - print_lookup_table_entry(imd->metadata_lte, NULL); + print_lookup_table_entry(imd->metadata_lte); #endif return read_metadata_resource(w->fp, wimlib_get_compression_type(w), @@ -444,9 +437,7 @@ static int begin_read(WIMStruct *w, const char *in_wim_path, int flags) return WIMLIB_ERR_COMPRESSED_LOOKUP_TABLE; } - ret = read_lookup_table(w->fp, w->hdr.lookup_table_res_entry.offset, - w->hdr.lookup_table_res_entry.size, - &w->lookup_table); + ret = read_lookup_table(w); if (ret != 0) return ret;