summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-04-14 12:43:21 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-04-14 12:43:21 +0000
commit34c63d119a3c9dc93b96dd3a887a32256a4323b8 (patch)
treee28760f8cc9b0f1df0e0f8141cace14c467c20ad
parent2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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.
-rw-r--r--cpukit/ChangeLog2
-rw-r--r--cpukit/libnetworking/sys/mbuf.h2
2 files changed, 3 insertions, 1 deletions
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 <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
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)))
/*