Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79639
b: refs/heads/master
c: d7422c4
h: refs/heads/master
i:
  79637: 30073cc
  79635: b397b51
  79631: 870f702
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Jan 30, 2008
1 parent a970809 commit 9f0ae8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff052645c939b2fd8d467105adf98fa621cc244b
refs/heads/master: d7422c472bbaa419876b91e8823c6219c4a144cb
11 changes: 5 additions & 6 deletions trunk/fs/nfs/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct rpc_program nfsacl_program = {

struct nfs_client_initdata {
const char *hostname;
const struct sockaddr_in *addr;
const struct sockaddr *addr;
size_t addrlen;
const struct nfs_rpc_ops *rpc_ops;
};
Expand Down Expand Up @@ -308,9 +308,8 @@ static struct nfs_client *nfs_get_client(const struct nfs_client_initdata *cl_in
struct nfs_client *clp, *new = NULL;
int error;

dprintk("--> nfs_get_client(%s,"NIPQUAD_FMT":%d,%u)\n",
cl_init->hostname ?: "", NIPQUAD(cl_init->addr->sin_addr),
cl_init->addr->sin_port, cl_init->rpc_ops->version);
dprintk("--> nfs_get_client(%s,v%u)\n",
cl_init->hostname ?: "", cl_init->rpc_ops->version);

/* see if the client already exists */
do {
Expand Down Expand Up @@ -581,7 +580,7 @@ static int nfs_init_server(struct nfs_server *server,
{
struct nfs_client_initdata cl_init = {
.hostname = data->nfs_server.hostname,
.addr = &data->nfs_server.address,
.addr = (const struct sockaddr *)&data->nfs_server.address,
.addrlen = sizeof(data->nfs_server.address),
.rpc_ops = &nfs_v2_clientops,
};
Expand Down Expand Up @@ -935,7 +934,7 @@ static int nfs4_set_client(struct nfs_server *server,
{
struct nfs_client_initdata cl_init = {
.hostname = hostname,
.addr = addr,
.addr = (const struct sockaddr *)addr,
.addrlen = sizeof(*addr),
.rpc_ops = &nfs_v4_clientops,
};
Expand Down

0 comments on commit 9f0ae8d

Please sign in to comment.