diff options
author | peter <peter@FreeBSD.org> | 1998-05-31 19:29:28 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-31 19:29:28 +0000 |
commit | d9c0dc4a941ebf442d0cf0c2d0cd822cee5b4d34 (patch) | |
tree | 4146396bad6235d81bb0f79e6dfe124a586c702c /sys | |
parent | 2a5188e78c5774fe3e4c4d12fb905417c8e87853 (diff) | |
download | FreeBSD-src-d9c0dc4a941ebf442d0cf0c2d0cd822cee5b4d34.zip FreeBSD-src-d9c0dc4a941ebf442d0cf0c2d0cd822cee5b4d34.tar.gz |
xdr encode -1 properly.
Obtained from: NetBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 91e70a0..9031f7c 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.100 1998/05/31 19:24:19 peter Exp $ + * $Id: nfs_vnops.c,v 1.101 1998/05/31 19:28:15 peter Exp $ */ @@ -1232,7 +1232,7 @@ nfs_mknodrpc(dvp, vpp, cnp, vap) if (vap->va_type == VCHR || vap->va_type == VBLK) rdev = txdr_unsigned(vap->va_rdev); else if (vap->va_type == VFIFO || vap->va_type == VSOCK) - rdev = 0xffffffff; + rdev = nfs_xdrneg1; else { VOP_ABORTOP(dvp, cnp); return (EOPNOTSUPP); diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 91e70a0..9031f7c 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.100 1998/05/31 19:24:19 peter Exp $ + * $Id: nfs_vnops.c,v 1.101 1998/05/31 19:28:15 peter Exp $ */ @@ -1232,7 +1232,7 @@ nfs_mknodrpc(dvp, vpp, cnp, vap) if (vap->va_type == VCHR || vap->va_type == VBLK) rdev = txdr_unsigned(vap->va_rdev); else if (vap->va_type == VFIFO || vap->va_type == VSOCK) - rdev = 0xffffffff; + rdev = nfs_xdrneg1; else { VOP_ABORTOP(dvp, cnp); return (EOPNOTSUPP); |