Use C99 designated initializers in dix Replies
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com> Tested-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -252,11 +252,12 @@ ProcQueryExtension(ClientPtr client)
|
||||
|
||||
REQUEST_FIXED_SIZE(xQueryExtensionReq, stuff->nbytes);
|
||||
|
||||
memset(&reply, 0, sizeof(xQueryExtensionReply));
|
||||
reply.type = X_Reply;
|
||||
reply.length = 0;
|
||||
reply.major_opcode = 0;
|
||||
reply.sequenceNumber = client->sequence;
|
||||
reply = (xQueryExtensionReply) {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = 0,
|
||||
.major_opcode = 0
|
||||
};
|
||||
|
||||
if (!NumExtensions)
|
||||
reply.present = xFalse;
|
||||
@@ -284,11 +285,12 @@ ProcListExtensions(ClientPtr client)
|
||||
|
||||
REQUEST_SIZE_MATCH(xReq);
|
||||
|
||||
memset(&reply, 0, sizeof(xListExtensionsReply));
|
||||
reply.type = X_Reply;
|
||||
reply.nExtensions = 0;
|
||||
reply.length = 0;
|
||||
reply.sequenceNumber = client->sequence;
|
||||
reply = (xListExtensionsReply) {
|
||||
.type = X_Reply,
|
||||
.nExtensions = 0,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = 0
|
||||
};
|
||||
buffer = NULL;
|
||||
|
||||
if (NumExtensions) {
|
||||
|
||||
Reference in New Issue
Block a user