NFS: Use C99 structure declaration in client.c
Subsystems (2)
PATCH 3/10 NFS: Use C99 structure declaration in client.c
And clean up some white space and commas.
Signed-off-by Chuck Lever <[email protected]>
---
fs/nfs/client.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
fs/nfs/client.c +7 -4
@@ -72,17 +72,20 @@ struct rpc_program nfs_program = { };struct rpc_stat nfs_rpcstat = { - .program = &nfs_program + .program = &nfs_program, };#ifdef CONFIG_NFS_V3_ACL -static struct rpc_stat nfsacl_rpcstat = { &nfsacl_program }; -static struct rpc_version * nfsacl_version[] = { +static struct rpc_stat nfsacl_rpcstat = { + .program = &nfsacl_program, +}; + +static struct rpc_version *nfsacl_version[] = { [3 ] = &nfsacl_version3, }; -struct rpc_program nfsacl_program = { +struct rpc_program nfsacl_program = { .name ="nfsacl" , .number =NFS_ACL_PROGRAM , .nrvers = ARRAY_SIZE(nfsacl_version),
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs