forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user