summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-06-05 13:58:19 +0200
committerKarolin Seeger <kseeger@samba.org>2015-06-30 04:19:07 +0200
commitad8c901f58714fc91ea0fd16c994525398d5a912 (patch)
tree68b21e9e5ee790e68c5cf7271ca55a1d236912a0 /lib
parent65dc14c188f9d506362893bb916d10ffcb1f49b5 (diff)
downloadsamba-ad8c901f58714fc91ea0fd16c994525398d5a912.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> (cherry picked from commit be8c2ff10353df00f05cd378c251a33a9e08563a)
Diffstat (limited to 'lib')
-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 531d779d6ea..13c58ffe8de 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -69,13 +69,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;
}
@@ -115,7 +114,7 @@ struct tevent_req *async_connect_send(
}
if (state->result == 0) {
- tevent_req_done(result);
+ tevent_req_done(req);
goto done;
}
@@ -136,18 +135,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);
}
/**