diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-07 05:22:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-07 05:22:19 +0000 |
commit | 52c632660356012b59ddd7c11c70cb006b89f617 (patch) | |
tree | bbe852a1e49d5987596f7a82b3a3f7c8d37aa58e /sys | |
parent | 21bce5c136bec1eeac6d2ec2d057c36ec8504f86 (diff) |
best if this compiles
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/vax/vax/disksubr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index f7dd2ccea47..10a7ea3791b 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.43 2007/06/07 00:28:17 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.44 2007/06/07 05:22:18 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -59,6 +59,7 @@ int 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 = DL_GETPOFFSET(&lp->d_partitions[RAW_PART]); int maxsz = DL_GETPSIZE(p); |