summaryrefslogtreecommitdiff
path: root/lib/async_req
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-05-21 22:28:14 +0200
committerStefan Metzmacher <metze@samba.org>2015-06-12 17:08:18 +0200
commit4f05f68abc1d756bb114260e80d3532f3f959fec (patch)
treeed5cb2c87fea243897bf98f5b4a69d0b1c2e319b /lib/async_req
parent0c1109695639a177d3d739b343e7588a6ecf0949 (diff)
downloadsamba-4f05f68abc1d756bb114260e80d3532f3f959fec.tar.gz
lib/async_req: s/result/req/ in read_packet_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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 8cccd15864c..ebcedb5cbd1 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -396,12 +396,12 @@ struct tevent_req *read_packet_send(TALLOC_CTX *mem_ctx,
void *private_data),
void *private_data)
{
- struct tevent_req *result;
+ struct tevent_req *req;
struct read_packet_state *state;
struct tevent_fd *fde;
- result = tevent_req_create(mem_ctx, &state, struct read_packet_state);
- if (result == NULL) {
+ req = tevent_req_create(mem_ctx, &state, struct read_packet_state);
+ if (req == NULL) {
return NULL;
}
state->fd = fd;
@@ -415,13 +415,13 @@ struct tevent_req *read_packet_send(TALLOC_CTX *mem_ctx,
}
fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, read_packet_handler,
- result);
+ req);
if (fde == NULL) {
goto fail;
}
- return result;
+ return req;
fail:
- TALLOC_FREE(result);
+ TALLOC_FREE(req);
return NULL;
}