From: Andreas Schneider Date: Mon, 14 Jan 2019 10:59:59 +0000 (+0100) Subject: lib:tevent: Use correct C99 initializer for tevent_req X-Git-Tag: ldb-1.6.1~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da2e9c215f882ea4c331ac4f17738913beb7404;p=thirdparty%2Fsamba.git lib:tevent: Use correct C99 initializer for tevent_req Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c index 76e27b8f7e9..7821d9ae734 100644 --- a/lib/tevent/tevent_req.c +++ b/lib/tevent/tevent_req.c @@ -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);