summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2012-03-31 23:10:35 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2012-03-31 23:10:35 +0000
commitedbd19bf09e8f1f466f64427934572821a1ed566 (patch)
treefaafa2e775c782a804ff0972039574a4892ff212 /sys/kern/subr_disk.c
parent931239e60e5aa6d2a6e5de89d4f2ae2c14b3b91d (diff)
Some whitespace/paren tweaks. Rename the mbr testing variable from
'fattest' to 'mbrtest'. No change to .o.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 27ffe1e98f1..542fd5097f4 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.143 2012/02/10 18:41:36 phessler Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.144 2012/03/31 23:10:34 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -429,12 +429,12 @@ readdoslabel(struct buf *bp, void (*strat)(struct buf *),
bcopy(bp->b_data + offset, dp, sizeof(dp));
if (n == 0 && part_blkno == DOSBBSECTOR) {
- u_int16_t fattest;
+ u_int16_t mbrtest;
/* Check the end of sector marker. */
- fattest = ((bp->b_data[510] << 8) & 0xff00) |
+ mbrtest = ((bp->b_data[510] << 8) & 0xff00) |
(bp->b_data[511] & 0xff);
- if (fattest != 0x55aa)
+ if (mbrtest != 0x55aa)
goto notfat;
}
@@ -590,8 +590,8 @@ notfat:
*partoffp = dospartoff;
else {
DL_SETBSTART(lp, dospartoff);
- DL_SETBEND(lp,
- dospartend < DL_GETDSIZE(lp) ? dospartend : DL_GETDSIZE(lp));
+ DL_SETBEND(lp, (dospartend < DL_GETDSIZE(lp)) ? dospartend :
+ DL_GETDSIZE(lp));
}
/* don't read the on-disk label if we are in spoofed-only mode */