X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwimlib_internal.h;h=c89d733ee30524c19a2d6ada5ced77d742f63b8e;hp=be4c60911648be2daee13604a5b90053698e4a49;hb=c155e206bf806dd639b57922c3eef0b428c985df;hpb=950967a62753439aadd271b64e31deecf21ea275 diff --git a/src/wimlib_internal.h b/src/wimlib_internal.h index be4c6091..c89d733e 100644 --- a/src/wimlib_internal.h +++ b/src/wimlib_internal.h @@ -191,8 +191,11 @@ struct wim_security_data { * that wimlib writes, currently), it will be 8 bytes. */ u32 total_length; - /* The number of security descriptors in the array @descriptors, below. */ - u32 num_entries; + /* The number of security descriptors in the array @descriptors, below. + * It is really an unsigned int, but it must fit into an int because the + * security ID's are signed. (Not like you would ever have more than a + * few hundred security descriptors anyway). */ + int32_t num_entries; /* Array of sizes of the descriptors in the array @descriptors. */ u64 *sizes; @@ -385,7 +388,7 @@ extern int extract_wim_resource_to_fd(const struct lookup_table_entry *lte, extern int extract_full_wim_resource_to_fd(const struct lookup_table_entry *lte, int fd); -extern int read_metadata_resource(FILE *fp, int wim_ctype, +extern int read_metadata_resource(WIMStruct *w, struct image_metadata *image_metadata);