diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-05-31 19:57:45 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-05-31 19:57:45 +0000 |
commit | f0646dd190203a23d2994fe048d94b73b2b4240f (patch) | |
tree | b761d67865eedb832715a59a431435310e458a27 /sys/arch/alpha | |
parent | 4ce4767776c759f2905628af590a0b41814b6647 (diff) |
KNF, whitespace and comment rectification to make all
bounds_check_with_label() routines as identical as possible without
changing any code. Code nits and adjustments to come.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/disksubr.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index 297c29235e8..484ac9aabf0 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.70 2007/05/31 16:05:50 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.71 2007/05/31 19:57:43 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -535,16 +535,13 @@ writedisklabel(dev, strat, lp, osdep) * if needed, and signal errors or early completion. */ int -bounds_check_with_label(bp, lp, osdep, wlabel) - struct buf *bp; - struct disklabel *lp; - struct cpu_disklabel *osdep; - int wlabel; +bounds_check_with_label(struct buf *bp, struct disklabel *lp, + struct cpu_disklabel *osdep, int wlabel) { #define blockpersec(count, lp) ((count) * (((lp)->d_secsize) / DEV_BSIZE)) struct partition *p = lp->d_partitions + DISKPART(bp->b_dev); - int labelsector = blockpersec(lp->d_partitions[RAW_PART].p_offset, - lp) + osdep->labelsector; + int labelsector = blockpersec(lp->d_partitions[RAW_PART].p_offset, lp) + + osdep->labelsector; int sz = howmany(bp->b_bcount, DEV_BSIZE); /* avoid division by zero */ |