summaryrefslogtreecommitdiffstats
path: root/sys/dev/hea/eni_buffer.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-08 18:27:30 +0000
committerjhb <jhb@FreeBSD.org>2002-11-08 18:27:30 +0000
commitb72917b520dafbce4c1cc804dc93887d66c593b3 (patch)
tree291ae2bd3be9306179924d18340c26cf8e4f0b9c /sys/dev/hea/eni_buffer.c
parent451dec5f86ca56ab2475ea41c94afa7b4fc2b919 (diff)
downloadFreeBSD-src-b72917b520dafbce4c1cc804dc93887d66c593b3.zip
FreeBSD-src-b72917b520dafbce4c1cc804dc93887d66c593b3.tar.gz
- Change the ATM stack functions to use intptr_t instead of int for opaque
arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd
Diffstat (limited to 'sys/dev/hea/eni_buffer.c')
-rw-r--r--sys/dev/hea/eni_buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hea/eni_buffer.c b/sys/dev/hea/eni_buffer.c
index e113b55..0230c29 100644
--- a/sys/dev/hea/eni_buffer.c
+++ b/sys/dev/hea/eni_buffer.c
@@ -103,7 +103,7 @@ eni_test_memory ( eup )
* Walk through to maximum looking for RAM
*/
for ( i = 0; i < MAX_ENI_MEM; i += TEST_STEP ) {
- mp = (Eni_mem)((int)eup->eu_ram + i);
+ mp = (Eni_mem)((intptr_t)eup->eu_ram + i);
/* write pattern */
*mp = (u_long)TEST_PAT;
/* read pattern, match? */
@@ -254,7 +254,7 @@ eni_allocate_buffer ( eup, size )
* Request will fit - now check if the
* alignment needs fixing
*/
- if ( ((u_int)eptr->base & (nsize-1)) != 0 )
+ if ( ((uintptr_t)eptr->base & (nsize-1)) != 0 )
{
caddr_t nbase;
@@ -262,7 +262,7 @@ eni_allocate_buffer ( eup, size )
* Calculate where the buffer would have to
* fall to be aligned.
*/
- nbase = (caddr_t)((u_int)( eptr->base + nsize ) &
+ nbase = (caddr_t)((uintptr_t)( eptr->base + nsize ) &
~(nsize-1));
/*
* If we use this alignment, will it still fit?
OpenPOWER on IntegriCloud