From d5143bacd0f2309d0f47269b7367673e1027d8fb Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 27 May 2010 16:47:06 +0000 Subject: =?UTF-8?q?2010-05-27=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libfs/src/nfsclient/src/xdr_mbuf.c: Use void* arithmetic instead of u_long arithmetic. --- cpukit/ChangeLog | 2 ++ cpukit/libfs/src/nfsclient/src/xdr_mbuf.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b3c5332e26..35bd8d798d 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,7 @@ 2010-05-27 Ralf Corsépius + * libfs/src/nfsclient/src/xdr_mbuf.c: + Use void* arithmetic instead of u_long arithmetic. * libnetworking/netinet/raw_ip.c, libnetworking/netinet/udp_usrreq.c: Cast mbufs to uintptr_t instead of u_long. diff --git a/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c b/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c index 9071df950d..e758b9ef2a 100644 --- a/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c +++ b/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c @@ -455,7 +455,7 @@ struct mbuf *m = mbp->mcurrent; u_int rval = mbp->pos; if (m) { - rval += (u_long)xdrs->x_private - mtod(m, u_long); + rval += xdrs->x_private - mtod(m, void*); } #else struct mbuf *m; -- cgit v1.2.3