summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-05-29 04:30:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-05-29 04:30:47 +0000
commit6b2c3f1158c09844eabbad56698869711d5c0cfb (patch)
treebd1df45b7ce95fe20151a7644306642499ee0641 /cpukit
parent2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-6b2c3f1158c09844eabbad56698869711d5c0cfb.tar.bz2
2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/nfsclient/src/xdr_mbuf.c (xdrmbuf_setup): Cast addr to uintptr_t instead of size_t.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog2
-rw-r--r--cpukit/libfs/src/nfsclient/src/xdr_mbuf.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 9d4f570497..91806f587f 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,7 @@
2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * libfs/src/nfsclient/src/xdr_mbuf.c (xdrmbuf_setup):
+ Cast addr to uintptr_t instead of size_t.
* librpc/src/xdr/xdr_mem.c (xdr_memcreate):
Cast addr to uintptr_t instead of size_t.
* libfs/src/nfsclient/src/dirutils.c: Add PRIomode_t, PRIdoff_t.
diff --git a/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c b/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c
index e758b9ef2a..d06bc068f5 100644
--- a/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c
+++ b/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c
@@ -147,7 +147,7 @@ MBPrivate mbp = (MBPrivate)xdrs->x_base;
mbp->mcurrent = m;
xdrs->x_private = mtod(m,caddr_t);
xdrs->x_handy = m->m_len;
- xdrs->x_ops = ((size_t)xdrs->x_private & (sizeof(int32_t) - 1))
+ xdrs->x_ops = ((uintptr_t)xdrs->x_private & (sizeof(int32_t) - 1))
? &xdrmbuf_ops_unaligned : &xdrmbuf_ops_aligned;
}