Skip to content

Commit b1cde49

Browse files
committed
Revert "multipath-tools tests: gpt: fix compilation errors on old compilers"
This reverts commit f95f7d7.
1 parent 401e7f8 commit b1cde49

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/gpt.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ static uint32_t efi_crc32(const void *buf, size_t len)
115115
#define FLAG_VALID_PMBR (1U << 5)
116116

117117
/* Linux data partition type GUID */
118-
static efi_guid_t linux_data_guid;
119-
118+
static const efi_guid_t linux_data_guid =
119+
EFI_GUID(0x0FC63DAF, 0x8483, 0x4772, 0x8E, 0x79, 0x3D, 0x69, 0xD8,
120+
0x47, 0x7D, 0xE4);
120121

121122
/*
122123
* Build an in-memory GPT disk image and return an open memfd.
@@ -702,7 +703,5 @@ int main(void)
702703
cmocka_unit_test(test_gpt_257_entries),
703704
cmocka_unit_test(test_gpt_1025_entries),
704705
};
705-
linux_data_guid = EFI_GUID(0x0FC63DAF, 0x8483, 0x4772, 0x8E, 0x79,
706-
0x3D, 0x69, 0xD8, 0x47, 0x7D, 0xE4);
707706
return cmocka_run_group_tests(tests, group_setup, group_teardown);
708707
}

0 commit comments

Comments
 (0)