diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-10 13:02:31 +0100 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-03-23 17:19:22 +0100 |
commit | 044eabe425f9ae6e2fcea5ec1481b33c35b173f7 (patch) | |
tree | 00a93aabcc3e7139a0649ada76dd196ab563296b | |
parent | 73faa82bf9ebebdff9662e60715e9fd4f1614b9f (diff) | |
download | samba-044eabe425f9ae6e2fcea5ec1481b33c35b173f7.tar.gz samba-044eabe425f9ae6e2fcea5ec1481b33c35b173f7.tar.bz2 samba-044eabe425f9ae6e2fcea5ec1481b33c35b173f7.zip |
s3-rpc_server: Rename req to subreq.
-rw-r--r-- | source3/rpc_server/rpc_ep_setup.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source3/rpc_server/rpc_ep_setup.c b/source3/rpc_server/rpc_ep_setup.c index 836ef30242..9baee276b2 100644 --- a/source3/rpc_server/rpc_ep_setup.c +++ b/source3/rpc_server/rpc_ep_setup.c @@ -219,15 +219,15 @@ static NTSTATUS rpc_ep_setup_register(struct tevent_context *ev_ctx, #define MONITOR_WAIT_TIME 15 static void rpc_ep_setup_monitor_loop(struct tevent_req *subreq); -static void rpc_ep_setup_register_loop(struct tevent_req *req) +static void rpc_ep_setup_register_loop(struct tevent_req *subreq) { struct rpc_ep_regsiter_state *state = - tevent_req_callback_data(req, struct rpc_ep_regsiter_state); + tevent_req_callback_data(subreq, struct rpc_ep_regsiter_state); NTSTATUS status; bool ok; - ok = tevent_wakeup_recv(req); - TALLOC_FREE(req); + ok = tevent_wakeup_recv(subreq); + TALLOC_FREE(subreq); if (!ok) { talloc_free(state); return; @@ -242,15 +242,15 @@ static void rpc_ep_setup_register_loop(struct tevent_req *req) &state->h); if (NT_STATUS_IS_OK(status)) { /* endpoint registered, monitor the connnection. */ - req = tevent_wakeup_send(state->mem_ctx, - state->ev_ctx, - timeval_current_ofs(MONITOR_WAIT_TIME, 0)); - if (tevent_req_nomem(state->mem_ctx, req)) { + subreq = tevent_wakeup_send(state->mem_ctx, + state->ev_ctx, + timeval_current_ofs(MONITOR_WAIT_TIME, 0)); + if (tevent_req_nomem(state->mem_ctx, subreq)) { talloc_free(state); return; } - tevent_req_set_callback(req, rpc_ep_setup_monitor_loop, state); + tevent_req_set_callback(subreq, rpc_ep_setup_monitor_loop, state); return; } @@ -260,15 +260,15 @@ static void rpc_ep_setup_register_loop(struct tevent_req *req) return; } - req = tevent_wakeup_send(state->mem_ctx, - state->ev_ctx, - timeval_current_ofs(state->wait_time, 0)); - if (tevent_req_nomem(state->mem_ctx, req)) { + subreq = tevent_wakeup_send(state->mem_ctx, + state->ev_ctx, + timeval_current_ofs(state->wait_time, 0)); + if (tevent_req_nomem(state->mem_ctx, subreq)) { talloc_free(state); return; } - tevent_req_set_callback(req, rpc_ep_setup_register_loop, state); + tevent_req_set_callback(subreq, rpc_ep_setup_register_loop, state); return; } |