summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <cel@citi.umich.edu>2002-11-08 03:28:38 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-11-08 03:28:38 -0800
commit44a15afe3dff7d44d64ed678c60719a63fad276e (patch)
treedf50f401b227783dc0efa99134c68bc6ac5f657f /include/linux/sunrpc
parentec213433101d668ff6f12830e3064c76ed515893 (diff)
[PATCH] use C99 static struct initializers
fix up the last remaining static struct initializers in the RPC client and portmapper.
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/clnt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index 17a46b575ba0..713cb3f4ea7e 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -130,7 +130,12 @@ void rpc_setbufsize(struct rpc_clnt *, unsigned int, unsigned int);
static __inline__
int rpc_call(struct rpc_clnt *clnt, u32 proc, void *argp, void *resp, int flags)
{
- struct rpc_message msg = { proc, argp, resp, NULL };
+ struct rpc_message msg = {
+ .rpc_proc = proc,
+ .rpc_argp = argp,
+ .rpc_resp = resp,
+ .rpc_cred = NULL
+ };
return rpc_call_sync(clnt, &msg, flags);
}