diff options
-rw-r--r-- | sbin/fdisk/fdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 49c5724..e3591be 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -487,7 +487,7 @@ print_part(const struct dos_partition *partp) get_type(partp->dp_typ)); printf(" start %lu, size %lu (%ju Meg), flag %x%s\n", (u_long)partp->dp_start, - (u_long)partp->dp_size, + (u_long)partp->dp_size, (uintmax_t)part_mb, partp->dp_flag, partp->dp_flag == ACTIVE ? " (active)" : ""); @@ -892,7 +892,7 @@ write_s0() dos_partition_enc(&mboot.bootinst[DOSPARTOFF + i * DOSPARTSIZE], &mboot.parts[i]); le16enc(&mboot.bootinst[DOSMAGICOFFSET], DOSMAGIC); - for(sector = 0; sector < mboot.bootinst_size / secsize; sector++) + for(sector = 0; sector < mboot.bootinst_size / secsize; sector++) if (write_disk(sector, &mboot.bootinst[sector * secsize]) == -1) { warn("can't write fdisk partition table"); @@ -1113,7 +1113,7 @@ str2sectors(const char *str) return NO_DISK_SECTORS; } - if (*end == 'K') + if (*end == 'K') val *= 1024UL / secsize; else if (*end == 'M') val *= 1024UL * 1024UL / secsize; |