diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 66078f12c4..d6860fe75a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,7 @@ 2010-04-14 Ralf Corsépius + * libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long + for 16bit target compliance. * libnetworking/libc/gethostbydns.c: Use uintptr_t instead of u_long for 16bit target compliance. * libnetworking/sys/sysctl.h: Change sysctl_oid->arg2 into int32_t 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))) /*