remove trailing whitespace...
MFC after: 1 week
This commit is contained in:
parent
469a1218c0
commit
21fa393279
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user