diff --git a/common/partitions.c b/common/partitions.c index dd25160..683b258 100644 --- a/common/partitions.c +++ b/common/partitions.c @@ -89,7 +89,7 @@ struct partition_parser *parser; /* first new partition table as EFI GPT */ - type = file_detect_type(buf, SECTOR_SIZE * 2); + type = file_detect_partition_table(buf, SECTOR_SIZE * 2); list_for_each_entry(parser, &partition_parser_list, list) { if (parser->type == type) @@ -100,7 +100,7 @@ * so if EFI GPT not enable take it as MBR * useful for compatibility */ - type = file_detect_type(buf, SECTOR_SIZE); + type = file_detect_partition_table(buf, SECTOR_SIZE); list_for_each_entry(parser, &partition_parser_list, list) { if (parser->type == type)