summaryrefslogtreecommitdiff
path: root/sys/arch/landisk
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-05-31 19:57:45 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-05-31 19:57:45 +0000
commitf0646dd190203a23d2994fe048d94b73b2b4240f (patch)
treeb761d67865eedb832715a59a431435310e458a27 /sys/arch/landisk
parent4ce4767776c759f2905628af590a0b41814b6647 (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/landisk')
-rw-r--r--sys/arch/landisk/landisk/disksubr.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c
index 18db52b2f33..925547d3f84 100644
--- a/sys/arch/landisk/landisk/disksubr.c
+++ b/sys/arch/landisk/landisk/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.17 2007/05/31 16:05:50 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.18 2007/05/31 19:57:43 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -446,11 +446,8 @@ done:
* 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);
@@ -493,7 +490,7 @@ bounds_check_with_label(bp, lp, osdep, wlabel)
/* calculate cylinder for disksort to order transfers with */
bp->b_cylinder = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
- lp->d_secpercyl;
+ lp->d_secpercyl;
return (1);
bad: