Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: firmware/lib/cgptlib/include/gpt.h

Issue 2871019: More cleanup of MSVC errors (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: firmware/lib/cgptlib/include/gpt.h
diff --git a/firmware/lib/cgptlib/include/gpt.h b/firmware/lib/cgptlib/include/gpt.h
index 1e8f47ff5d33e2a3e4a74302bdbe33d23814f4ec..cd5e12b9b7a5865d145a0cddf1b8212e8d11fe72 100644
--- a/firmware/lib/cgptlib/include/gpt.h
+++ b/firmware/lib/cgptlib/include/gpt.h
@@ -83,7 +83,7 @@ typedef struct {
uint32_t number_of_entries;
uint32_t size_of_entry;
uint32_t entries_crc32;
- uint8_t reserved_padding[]; /* entire sector reserved for header */
+ /* Remainder of sector is reserved and should be 0 */
} __attribute__((packed)) GptHeader;
/* GPT partition entry defines the starting and ending LBAs of a partition.
@@ -104,7 +104,7 @@ typedef struct {
uint64_t whole;
} attrs;
uint16_t name[36]; /* UTF-16 encoded partition name */
- uint8_t reserved[]; /* nothing, really */
+ /* Remainder of entry is reserved and should be 0 */
} __attribute__((packed)) GptEntry;
#endif /* VBOOT_REFERENCE_CGPTLIB_GPT_H_ */

Powered by Google App Engine
This is Rietveld 408576698