summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:45:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:45:19 +0000
commit0c04d1ff464573bd89ea1884ad71bed30df9c9c0 (patch)
treec10b2184e017cd1cb87b7608fb3cf89e433c3151 /sys/arch/i386/include
parentaa1d707b3d33489f4d03816c38e6aa3451ae4fd5 (diff)
Make sure the ALIGN() macro uses u_long on all platforms for consistency, and
update the comment block accordingly.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/param.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/include/param.h b/sys/arch/i386/include/param.h
index dc8a640568b..d243514739b 100644
--- a/sys/arch/i386/include/param.h
+++ b/sys/arch/i386/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.42 2007/10/01 12:10:55 martin Exp $ */
+/* $OpenBSD: param.h,v 1.43 2011/04/07 15:45:17 miod Exp $ */
/* $NetBSD: param.h,v 1.29 1996/03/04 05:04:26 cgd Exp $ */
/*-
@@ -55,7 +55,7 @@
/*
* Round p (pointer or byte index) up to a correctly-aligned value
- * for all data types (int, long, ...). The result is u_int and
+ * for all data types (int, long, ...). The result is u_long and
* must be cast to any desired pointer type.
*
* ALIGNED_POINTER is a boolean macro that checks whether an address
@@ -64,7 +64,7 @@
* (within reasonable limits).
*/
#define ALIGNBYTES (sizeof(int) - 1)
-#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) &~ ALIGNBYTES)
#define ALIGNED_POINTER(p,t) 1
#define PGSHIFT 12 /* LOG2(NBPG) */