diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-08 18:27:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-08 18:27:30 +0000 |
commit | b72917b520dafbce4c1cc804dc93887d66c593b3 (patch) | |
tree | 291ae2bd3be9306179924d18340c26cf8e4f0b9c /sys/netatm/port.h | |
parent | 451dec5f86ca56ab2475ea41c94afa7b4fc2b919 (diff) | |
download | FreeBSD-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/netatm/port.h')
-rw-r--r-- | sys/netatm/port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h index 60b48eb..83e0654 100644 --- a/sys/netatm/port.h +++ b/sys/netatm/port.h @@ -244,10 +244,10 @@ typedef struct mbuf KBuffer; #define KB_TAILALIGN(bfr, n) { \ (bfr)->m_len = (n); \ if ((bfr)->m_flags & M_EXT) \ - (bfr)->m_data = (caddr_t)(((u_int)(bfr)->m_ext.ext_buf \ + (bfr)->m_data = (caddr_t)(((uintptr_t)(bfr)->m_ext.ext_buf \ + (bfr)->m_ext.ext_size - (n)) & ~(sizeof(long) - 1));\ else \ - (bfr)->m_data = (caddr_t)(((u_int)(bfr)->m_dat + MLEN - (n)) \ + (bfr)->m_data = (caddr_t)(((uintptr_t)(bfr)->m_dat + MLEN - (n)) \ & ~(sizeof(long) - 1)); \ } #define KB_HEADROOM(bfr, n) { \ |