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:
parent
47b57a2fc8
commit
0da2e9c215
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user