return rpc_get_error(nfs->rpc);
};
-int rpc_set_context_args(struct rpc_context *rpc, char *arg, char *val)
+static int nfs_set_context_args(struct nfs_context *nfs, char *arg, char *val)
{
if (!strncmp(arg, "tcp-syncnt", 10)) {
- rpc_set_tcp_syncnt(rpc, atoi(val));
+ rpc_set_tcp_syncnt(nfs_get_rpc_context(nfs), atoi(val));
} else if (!strncmp(arg, "uid", 3)) {
- rpc_set_uid(rpc, atoi(val));
+ rpc_set_uid(nfs_get_rpc_context(nfs), atoi(val));
} else if (!strncmp(arg, "gid", 3)) {
- rpc_set_gid(rpc, atoi(val));
+ rpc_set_gid(nfs_get_rpc_context(nfs), atoi(val));
}
return 0;
}
if (strp2) {
*strp2 = 0;
strp2++;
- rpc_set_context_args(nfs_get_rpc_context(nfs),
- strp, strp2);
+ nfs_set_context_args(nfs, strp, strp2);
}
}