From ae4a112295ec3ac8fbe8c147d1a6d9a7799aa948 Mon Sep 17 00:00:00 2001 From: yamt Date: Sat, 20 May 2006 07:56:28 +0000 Subject: [PATCH] replace a magic constant with a macro. --- sbin/mount_nfs/getnfsargs_small.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/mount_nfs/getnfsargs_small.c b/sbin/mount_nfs/getnfsargs_small.c index cf375843ff44..c1a0d5f5aceb 100644 --- a/sbin/mount_nfs/getnfsargs_small.c +++ b/sbin/mount_nfs/getnfsargs_small.c @@ -1,4 +1,4 @@ -/* $NetBSD: getnfsargs_small.c,v 1.2 2006/05/20 07:48:39 yamt Exp $ */ +/* $NetBSD: getnfsargs_small.c,v 1.3 2006/05/20 07:56:28 yamt Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -93,7 +93,7 @@ */ #include -__RCSID("$NetBSD: getnfsargs_small.c,v 1.2 2006/05/20 07:48:39 yamt Exp $"); +__RCSID("$NetBSD: getnfsargs_small.c,v 1.3 2006/05/20 07:56:28 yamt Exp $"); #include #include @@ -257,7 +257,7 @@ getnfsargs(char *spec, struct nfs_args *nfsargsp) nfsargsp->fhsize = ntohl(*(uint32_t *)nfhret.nfh); nfsargsp->fh += 4; } else { - nfsargsp->fhsize = 32; /* NFS_FHSIZE */ + nfsargsp->fhsize = NFSX_V2FH; nfsargsp->flags &= ~NFSMNT_NFSV3; } return 1;