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.
This commit is contained in:
Ralf Corsepius
2010-04-14 12:43:21 +00:00
parent c922a9dd0a
commit 34c63d119a
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
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.
* 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

View File

@@ -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)))
/*