diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-07-13 16:06:43 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-07-13 16:06:43 +0000 |
commit | 819989efbe8ffde4cc6e3ab1afe11029ea586c6a (patch) | |
tree | 4e964c7113ade51aff9048239346b3d751eb8fcb /sbin/disklabel/extern.h | |
parent | d8297e78ffe2a6b9dc0f7ccf007949d4ed95c957 (diff) |
Replace a '512' with DEV_BSIZE. Calculate physmem size in blocks and
not sectors, since the values being tested/manipulated in the auto_alloc
tables are blocks at that point. Use MEG(256) instead of hand
expanding it when testing physmem.
Diffstat (limited to 'sbin/disklabel/extern.h')
-rw-r--r-- | sbin/disklabel/extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/disklabel/extern.h b/sbin/disklabel/extern.h index e3bdecc7df4..05f84f2d7c3 100644 --- a/sbin/disklabel/extern.h +++ b/sbin/disklabel/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.23 2012/01/16 17:32:07 krw Exp $ */ +/* $OpenBSD: extern.h,v 1.24 2012/07/13 16:06:42 krw Exp $ */ /* * Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org> @@ -16,7 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define MEG(x) ((x) * 1024LL * (1024 / 512)) +#define MEG(x) ((x) * 1024LL * (1024 / DEV_BSIZE)) #define GIG(x) (MEG(x) * 1024LL) u_short dkcksum(struct disklabel *); |