diff options
author | John Baldwin <jhb@FreeBSD.org> | 2002-11-08 18:27:30 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2002-11-08 18:27:30 +0000 |
commit | 672cc99ed357cffbdc64853bbba0636f3169557f (patch) | |
tree | 291ae2bd3be9306179924d18340c26cf8e4f0b9c /sys/dev/hea/eni_buffer.c | |
parent | 5650d1726fe51ba609776f4ccf991f925a8f9a7b (diff) |
- 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
Notes
Notes:
svn path=/head/; revision=106651
Diffstat (limited to 'sys/dev/hea/eni_buffer.c')
-rw-r--r-- | sys/dev/hea/eni_buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hea/eni_buffer.c b/sys/dev/hea/eni_buffer.c index e113b55663ce..0230c2940989 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? |