diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-14 12:43:21 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-14 12:43:21 +0000 |
commit | 34c63d119a3c9dc93b96dd3a887a32256a4323b8 (patch) | |
tree | e28760f8cc9b0f1df0e0f8141cace14c467c20ad /cpukit/libnetworking/sys | |
parent | 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-34c63d119a3c9dc93b96dd3a887a32256a4323b8.tar.bz2 |
2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long
for 16bit target compliance.
Diffstat (limited to 'cpukit/libnetworking/sys')
-rw-r--r-- | cpukit/libnetworking/sys/mbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/sys/mbuf.h b/cpukit/libnetworking/sys/mbuf.h index 450787573c..bad425e4ae 100644 --- a/cpukit/libnetworking/sys/mbuf.h +++ b/cpukit/libnetworking/sys/mbuf.h @@ -63,7 +63,7 @@ */ #define mtod(m, t) ((t)((m)->m_data)) #define dtom(x) ((struct mbuf *)((intptr_t)(x) & ~(MSIZE-1))) -#define mtocl(x) (((u_long)(x) - (u_long)mbutl) >> MCLSHIFT) +#define mtocl(x) (((uintptr_t)(x) - (uintptr_t)mbutl) >> MCLSHIFT) #define cltom(x) ((caddr_t)((u_long)mbutl + ((u_long)(x) << MCLSHIFT))) /* |