}
-
int test_part_dos (block_dev_desc_t *dev_desc)
{
unsigned char buffer[DEFAULT_SECTOR_SIZE];
if ((dev_desc->block_read(dev_desc->dev, 0, 1, (ulong *) buffer) != 1) ||
(buffer[DOS_PART_MAGIC_OFFSET + 0] != 0x55) ||
(buffer[DOS_PART_MAGIC_OFFSET + 1] != 0xaa) ) {
- return (-1);
+ return (-1);
}
return (0);
}
pt = (dos_partition_t *) (buffer + DOS_PART_TBL_OFFSET);
for (i = 0; i < 4; i++, pt++) {
/*
- * fdisk does not show the extended partitions that
+ * fdisk does not show the extended partitions that
* are not in the MBR
*/
pt = (dos_partition_t *) (buffer + DOS_PART_TBL_OFFSET);
for (i = 0; i < 4; i++, pt++) {
/*
- * fdisk does not show the extended partitions that
- * are not in the MBR
+ * fdisk does not show the extended partitions that
+ * are not in the MBR
*/
if ((pt->sys_ind != 0) &&
(part_num == which_part) &&
}
-
#endif /* (CONFIG_COMMANDS & CFG_CMD_IDE) && CONFIG_DOS_PARTITION */