diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-06-14 03:16:07 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-06-14 03:16:07 +0000 |
commit | dc650b3cd564bb3f7b03f782108ce9e181b89ed4 (patch) | |
tree | 654453e8ef6d2a59c44623807840cd19b607387b | |
parent | 547a5857db175855e29f1fabb3c4242ed109fd57 (diff) |
Replace magic '2' and '3' with defines for nfs version numbers
ok blambert@
-rw-r--r-- | sys/nfs/nfs_socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 246bc65ef97..9727fa9e527 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.63 2008/06/14 01:21:17 blambert Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.64 2008/06/14 03:16:06 thib Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -1091,8 +1091,8 @@ nfs_rephead(siz, nd, slp, err, mrq, mbp) case EPROGMISMATCH: *tl = txdr_unsigned(RPC_PROGMISMATCH); tl = nfsm_build(&mb, 2 * NFSX_UNSIGNED); - *tl++ = txdr_unsigned(2); - *tl = txdr_unsigned(3); + *tl++ = txdr_unsigned(NFS_VER2); + *tl = txdr_unsigned(NFS_VER3); break; case EPROCUNAVAIL: *tl = txdr_unsigned(RPC_PROCUNAVAIL); |