summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-03-23 16:01:27 +0000
committerderaadt <deraadt@openbsd.org>2013-03-23 16:01:27 +0000
commit6ddb76e01cda4435844b5fc203e49d290a318605 (patch)
treefdeac0fecd0da7a12da1d3291f0f4d9102978471
parentavoid machine/param.h use (diff)
downloadwireguard-openbsd-6ddb76e01cda4435844b5fc203e49d290a318605.tar.xz
wireguard-openbsd-6ddb76e01cda4435844b5fc203e49d290a318605.zip
convert a DEV_BSHIFT use to DEV_BSIZE (this .h file is reused in
in userland by libkvm) ok sthen
-rw-r--r--sys/isofs/udf/udf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf.h b/sys/isofs/udf/udf.h
index 6a3c18f5df0..2a36e2a6d08 100644
--- a/sys/isofs/udf/udf.h
+++ b/sys/isofs/udf/udf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf.h,v 1.14 2011/07/04 04:30:41 tedu Exp $ */
+/* $OpenBSD: udf.h,v 1.15 2013/03/23 16:01:27 deraadt Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -104,7 +104,7 @@ struct udf_dirstream {
* Can the block layer be forced to use a different block size?
*/
#define RDSECTOR(devvp, sector, size, bp) \
- bread(devvp, sector << (ump->um_bshift - DEV_BSHIFT), size, bp)
+ bread(devvp, ((sector) << ump->um_bshift) / DEV_BSIZE, size, bp)
static __inline int
udf_readlblks(struct umount *ump, int sector, int size, struct buf **bp)