gpt: minor cleanup
This commit is contained in:
parent
91391dc52b
commit
a8c24e86d0
2 changed files with 7 additions and 7 deletions
|
@ -229,7 +229,7 @@ grub_err_t grub_gpt_header_check (struct grub_gpt_header *gpt,
|
||||||
grub_err_t grub_gpt_part_label (grub_device_t device, char **label);
|
grub_err_t grub_gpt_part_label (grub_device_t device, char **label);
|
||||||
|
|
||||||
/* Return the partition uuid of the device DEVICE in UUID.
|
/* Return the partition uuid of the device DEVICE in UUID.
|
||||||
* The label is in a new buffer and should be freed by the caller. */
|
* The uuid is in a new buffer and should be freed by the caller. */
|
||||||
grub_err_t grub_gpt_part_uuid (grub_device_t device, char **uuid);
|
grub_err_t grub_gpt_part_uuid (grub_device_t device, char **uuid);
|
||||||
|
|
||||||
#endif /* ! GRUB_GPT_PARTITION_HEADER */
|
#endif /* ! GRUB_GPT_PARTITION_HEADER */
|
||||||
|
|
|
@ -538,7 +538,7 @@ repair_test (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
search_label_test (void)
|
search_part_label_test (void)
|
||||||
{
|
{
|
||||||
struct test_data data;
|
struct test_data data;
|
||||||
const char *test_result;
|
const char *test_result;
|
||||||
|
@ -575,7 +575,7 @@ search_label_test (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
search_uuid_test (void)
|
search_part_uuid_test (void)
|
||||||
{
|
{
|
||||||
struct test_data data;
|
struct test_data data;
|
||||||
const char gpt1_uuid[] = "A0F1792E-B4CE-4136-BCF2-1AFC133C2828";
|
const char gpt1_uuid[] = "A0F1792E-B4CE-4136-BCF2-1AFC133C2828";
|
||||||
|
@ -626,8 +626,8 @@ grub_unit_test_init (void)
|
||||||
grub_test_register ("gpt_read_invalid_test", read_invalid_entries_test);
|
grub_test_register ("gpt_read_invalid_test", read_invalid_entries_test);
|
||||||
grub_test_register ("gpt_read_fallback_test", read_fallback_test);
|
grub_test_register ("gpt_read_fallback_test", read_fallback_test);
|
||||||
grub_test_register ("gpt_repair_test", repair_test);
|
grub_test_register ("gpt_repair_test", repair_test);
|
||||||
grub_test_register ("gpt_search_label_test", search_label_test);
|
grub_test_register ("gpt_search_part_label_test", search_part_label_test);
|
||||||
grub_test_register ("gpt_search_uuid_test", search_uuid_test);
|
grub_test_register ("gpt_search_uuid_test", search_part_uuid_test);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -639,7 +639,7 @@ grub_unit_test_fini (void)
|
||||||
grub_test_unregister ("gpt_read_invalid_test");
|
grub_test_unregister ("gpt_read_invalid_test");
|
||||||
grub_test_unregister ("gpt_read_fallback_test");
|
grub_test_unregister ("gpt_read_fallback_test");
|
||||||
grub_test_unregister ("gpt_repair_test");
|
grub_test_unregister ("gpt_repair_test");
|
||||||
grub_test_unregister ("gpt_search_label_test");
|
grub_test_unregister ("gpt_search_part_label_test");
|
||||||
grub_test_unregister ("gpt_search_uuid_test");
|
grub_test_unregister ("gpt_search_part_uuid_test");
|
||||||
grub_fini_all ();
|
grub_fini_all ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue