Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127443
b: refs/heads/master
c: a484675
h: refs/heads/master
i:
  127441: cb36653
  127439: 2bd4ae5
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent a088019 commit 5cefefc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: afb03699dc0a920aed3322ad0e6895533941fb1e
refs/heads/master: a4846750f090702e2fb848ac4fe5827bcef34060
14 changes: 7 additions & 7 deletions trunk/fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res)
{
struct rpc_clnt *clnt;
int status;
struct nsm_args args;
struct nsm_args args = {
.addr = nsm_addr_in(nsm)->sin_addr.s_addr,
.prog = NLM_PROGRAM,
.vers = 3,
.proc = NLMPROC_NSM_NOTIFY,
.mon_name = nsm->sm_name,
};
struct rpc_message msg = {
.rpc_argp = &args,
.rpc_resp = res,
Expand All @@ -49,12 +55,6 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res)
goto out;
}

memset(&args, 0, sizeof(args));
args.mon_name = nsm->sm_name;
args.addr = nsm_addr_in(nsm)->sin_addr.s_addr;
args.prog = NLM_PROGRAM;
args.vers = 3;
args.proc = NLMPROC_NSM_NOTIFY;
memset(res, 0, sizeof(*res));

msg.rpc_proc = &clnt->cl_procinfo[proc];
Expand Down

0 comments on commit 5cefefc

Please sign in to comment.