1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib:tevent: Use correct C99 initializer for tevent_req

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2019-01-14 11:59:59 +01:00 committed by Andreas Schneider
parent 47b57a2fc8
commit 0da2e9c215

View File

@ -84,10 +84,12 @@ struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx,
}
*req = (struct tevent_req) {
.internal.private_type = type,
.internal.create_location = location,
.internal.state = TEVENT_REQ_IN_PROGRESS,
.internal.trigger = tevent_create_immediate(req)
.internal = {
.private_type = type,
.create_location = location,
.state = TEVENT_REQ_IN_PROGRESS,
.trigger = tevent_create_immediate(req),
},
};
data = talloc_zero_size(req, data_size);