summaryrefslogtreecommitdiff
path: root/lib/async_req
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-06-05 13:58:19 +0200
committerStefan Metzmacher <metze@samba.org>2015-06-12 17:08:17 +0200
commitbe8c2ff10353df00f05cd378c251a33a9e08563a (patch)
treea991633586b7e1bab59dacbe6a94c6e930a8789b /lib/async_req
parentccd038e1523a69197a9aaeca00305b0958f09ff0 (diff)
downloadsamba-be8c2ff10353df00f05cd378c251a33a9e08563a.tar.gz
lib/async_req: s/result/req/ in async_connect_send()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/async_req')
-rw-r--r--lib/async_req/async_sock.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index dfc81b8430b..fec306dd01b 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -70,13 +70,12 @@ struct tevent_req *async_connect_send(
void (*after_connect)(void *private_data),
void *private_data)
{
- struct tevent_req *result;
+ struct tevent_req *req;
struct async_connect_state *state;
struct tevent_fd *fde;
- result = tevent_req_create(
- mem_ctx, &state, struct async_connect_state);
- if (result == NULL) {
+ req = tevent_req_create(mem_ctx, &state, struct async_connect_state);
+ if (req == NULL) {
return NULL;
}
@@ -116,7 +115,7 @@ struct tevent_req *async_connect_send(
}
if (state->result == 0) {
- tevent_req_done(result);
+ tevent_req_done(req);
goto done;
}
@@ -137,18 +136,18 @@ struct tevent_req *async_connect_send(
}
fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ | TEVENT_FD_WRITE,
- async_connect_connected, result);
+ async_connect_connected, req);
if (fde == NULL) {
state->sys_errno = ENOMEM;
goto post_errno;
}
- return result;
+ return req;
post_errno:
- tevent_req_error(result, state->sys_errno);
+ tevent_req_error(req, state->sys_errno);
done:
fcntl(fd, F_SETFL, state->old_sockflags);
- return tevent_req_post(result, ev);
+ return tevent_req_post(req, ev);
}
/**