From: Eric Biggers Date: Mon, 26 May 2014 03:44:04 +0000 (-0500) Subject: struct wim_dentry: Union subdir_offset and tmp_list X-Git-Tag: v1.7.0~103 X-Git-Url: https://wimlib.net/git/?a=commitdiff_plain;h=9bf081f084e4576abe8001c7a3671013a574fb61;p=wimlib struct wim_dentry: Union subdir_offset and tmp_list --- diff --git a/include/wimlib/dentry.h b/include/wimlib/dentry.h index 99b42c0b..5067cfcc 100644 --- a/include/wimlib/dentry.h +++ b/include/wimlib/dentry.h @@ -99,13 +99,15 @@ struct wim_dentry { /* Used by wimlib_update_image() */ u8 is_orphan : 1; - /* Temporary list field */ - struct list_head tmp_list; - - /* 'subdir_offset' is only used while reading and writing this dentry. - * See the corresponding field in `struct wim_dentry_on_disk' for - * explanation. */ - u64 subdir_offset; + union { + /* 'subdir_offset' is only used while reading and writing this + * dentry. See the corresponding field in `struct + * wim_dentry_on_disk' for explanation. */ + u64 subdir_offset; + + /* Temporary list field */ + struct list_head tmp_list; + }; /* Full path to this dentry in the WIM, in platform-dependent tchars * that can be printed without conversion. By default this field will