diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-27 16:47:06 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-27 16:47:06 +0000 |
commit | d5143bacd0f2309d0f47269b7367673e1027d8fb (patch) | |
tree | 267fb97f8dfdaf9334c40e1d3e8233b0e880e15c /cpukit | |
parent | 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d5143bacd0f2309d0f47269b7367673e1027d8fb.tar.bz2 |
2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/nfsclient/src/xdr_mbuf.c:
Use void* arithmetic instead of u_long arithmetic.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/xdr_mbuf.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <ralf.corsepius@rtems.org> + * 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; |