diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-07 15:45:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-07 15:45:19 +0000 |
commit | 0c04d1ff464573bd89ea1884ad71bed30df9c9c0 (patch) | |
tree | c10b2184e017cd1cb87b7608fb3cf89e433c3151 /sys/arch/solbourne/include | |
parent | aa1d707b3d33489f4d03816c38e6aa3451ae4fd5 (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/solbourne/include')
-rw-r--r-- | sys/arch/solbourne/include/param.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/solbourne/include/param.h b/sys/arch/solbourne/include/param.h index 8fdef00c24d..2932a7423ee 100644 --- a/sys/arch/solbourne/include/param.h +++ b/sys/arch/solbourne/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.8 2011/03/23 16:54:37 pirofti Exp $ */ +/* $OpenBSD: param.h,v 1.9 2011/04/07 15:45:18 miod Exp $ */ /* OpenBSD: param.h,v 1.29 2004/08/06 22:31:31 mickey Exp */ /* @@ -58,7 +58,7 @@ /* * Round p (pointer or byte index) up to a correctly-aligned value for - * the machine's strictest data type. The result is u_int and must be + * the machine's strictest data type. 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 @@ -68,7 +68,7 @@ * */ #define ALIGNBYTES 7 -#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) & ~ALIGNBYTES) +#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) & ~ALIGNBYTES) #define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) #define SUN4_PGSHIFT 13 /* for a sun4 machine */ |