cosmetic changes.

This commit is contained in:
Yoshihiro Takahashi 2005-05-01 09:50:02 +00:00
parent 9b073f6668
commit 7fa181d423
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145763

View File

@ -51,8 +51,6 @@ int iotest;
#define LBUF 100
static char lbuf[LBUF];
#define MBRSIGOFF 510
/*
*
* Ported to 386bsd by Julian Elischer Thu Oct 15 20:26:46 PDT 1992
@ -84,7 +82,6 @@ struct mboot {
static struct mboot mboot;
static int fd, fdw;
#define ACTIVE 0x80
static uint dos_cyls;
@ -589,7 +586,7 @@ print_params()
printf("parameters extracted from in-core disklabel are:\n");
printf("cylinders=%d heads=%d sectors/track=%d (%d blks/cyl)\n\n"
,cyls,heads,sectors,cylsecs);
if((dos_sectors > 63) || (dos_cyls > 1023) || (dos_heads > 255))
if (dos_cyls > 1023 || dos_heads > 255 || dos_sectors > 63)
printf("Figures below won't work with BIOS for partitions not in cyl 1\n");
printf("parameters to be used for BIOS calculations are:\n");
printf("cylinders=%d heads=%d sectors/track=%d (%d blks/cyl)\n\n"
@ -740,10 +737,11 @@ open_disk(int flag)
static ssize_t
read_disk(off_t sector, void *buf)
{
lseek(fd, (sector * 512), 0);
if (secsize == 0)
for( secsize = MIN_SEC_SIZE; secsize <= MAX_SEC_SIZE; secsize *= 2 )
{
for (secsize = MIN_SEC_SIZE; secsize <= MAX_SEC_SIZE;
secsize *= 2) {
/* try the read */
int size = read(fd, buf, secsize);
if (size == secsize)