nfsdefargs: use designated initializers
This commit is contained in:
parent
99b23c11d2
commit
a85598544d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_nfs.c,v 1.65 2009/01/11 20:22:11 pooka Exp $ */
|
||||
/* $NetBSD: mount_nfs.c,v 1.66 2009/02/20 15:37:22 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1994
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993, 1994\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: mount_nfs.c,v 1.65 2009/01/11 20:22:11 pooka Exp $");
|
||||
__RCSID("$NetBSD: mount_nfs.c,v 1.66 2009/02/20 15:37:22 yamt Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -137,24 +137,24 @@ static const struct mntopt mopts[] = {
|
|||
};
|
||||
|
||||
struct nfs_args nfsdefargs = {
|
||||
NFS_ARGSVERSION,
|
||||
(struct sockaddr *)0,
|
||||
sizeof (struct sockaddr_in),
|
||||
SOCK_DGRAM,
|
||||
0,
|
||||
(u_char *)0,
|
||||
0,
|
||||
NFSMNT_NFSV3|NFSMNT_NOCONN|NFSMNT_RESVPORT,
|
||||
NFS_WSIZE,
|
||||
NFS_RSIZE,
|
||||
NFS_READDIRSIZE,
|
||||
10,
|
||||
NFS_RETRANS,
|
||||
NFS_MAXGRPS,
|
||||
NFS_DEFRAHEAD,
|
||||
0, /* Ignored; lease term */
|
||||
NFS_DEFDEADTHRESH,
|
||||
(char *)0,
|
||||
.version = NFS_ARGSVERSION,
|
||||
.addr = NULL,
|
||||
.addrlen = sizeof(struct sockaddr_in),
|
||||
.sotype = SOCK_DGRAM,
|
||||
.proto = 0,
|
||||
.fh = NULL,
|
||||
.fhsize = 0,
|
||||
.flags = NFSMNT_NFSV3|NFSMNT_NOCONN|NFSMNT_RESVPORT,
|
||||
.wsize = NFS_WSIZE,
|
||||
.rsize = NFS_RSIZE,
|
||||
.readdirsize = NFS_READDIRSIZE,
|
||||
.timeo = 10,
|
||||
.retrans = NFS_RETRANS,
|
||||
.maxgrouplist = NFS_MAXGRPS,
|
||||
.readahead = NFS_DEFRAHEAD,
|
||||
.leaseterm = 0, /* Ignored; lease term */
|
||||
.deadthresh = NFS_DEFDEADTHRESH,
|
||||
.hostname = NULL,
|
||||
};
|
||||
|
||||
#define DEF_RETRY 10000
|
||||
|
|
Loading…
Reference in New Issue