diff options
author | bde <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
commit | 863d5c8b6850a65e8b4e00a7b23bbd29bd466602 (patch) | |
tree | 503589837ac05f783d5305211b0f41aed97e2041 /sys/nfsserver | |
parent | b99f2f9d598baa39c296f1cf2d910a1f7e138bb1 (diff) | |
download | FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.zip FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.tar.gz |
Cast pointers to uintptr_t/intptr_t instead of to u_long/long,
respectively. Most of the longs should probably have been
u_longs, but this changes is just to prevent warnings about
casts between pointers and integers of different sizes, not
to fix poorly chosen types.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_srvsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfsserver/nfs_srvsock.c b/sys/nfsserver/nfs_srvsock.c index faf6ed9..ede6386 100644 --- a/sys/nfsserver/nfs_srvsock.c +++ b/sys/nfsserver/nfs_srvsock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_socket.c 8.5 (Berkeley) 3/30/95 - * $Id: nfs_socket.c,v 1.40 1998/05/31 20:08:54 peter Exp $ + * $Id: nfs_socket.c,v 1.41 1998/06/07 17:12:28 dfr Exp $ */ /* @@ -1594,10 +1594,10 @@ nfs_realign(m, hsiz) * This never happens for UDP, rarely happens for TCP * but frequently happens for iso transport. */ - if ((m->m_len & 0x3) || (mtod(m, long) & 0x3)) { + if ((m->m_len & 0x3) || (mtod(m, intptr_t) & 0x3)) { olen = m->m_len; fcp = mtod(m, caddr_t); - if ((long)fcp & 0x3) { + if ((intptr_t)fcp & 0x3) { m->m_flags &= ~M_PKTHDR; if (m->m_flags & M_EXT) m->m_data = m->m_ext.ext_buf + |