mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +00:00
Use C99 designated initializers in various extension 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:
parent
2f5caeaddb
commit
cc5f09c86f
7 changed files with 73 additions and 59 deletions
|
|
@ -474,11 +474,13 @@ ProcXFixesGetCursorName(ClientPtr client)
|
|||
str = "";
|
||||
len = strlen(str);
|
||||
|
||||
reply.type = X_Reply;
|
||||
reply.length = bytes_to_int32(len);
|
||||
reply.sequenceNumber = client->sequence;
|
||||
reply.atom = pCursor->name;
|
||||
reply.nbytes = len;
|
||||
reply = (xXFixesGetCursorNameReply) {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = bytes_to_int32(len),
|
||||
.atom = pCursor->name,
|
||||
.nbytes = len
|
||||
};
|
||||
if (client->swapped) {
|
||||
swaps(&reply.sequenceNumber);
|
||||
swapl(&reply.length);
|
||||
|
|
|
|||
|
|
@ -61,15 +61,15 @@ static int
|
|||
ProcXFixesQueryVersion(ClientPtr client)
|
||||
{
|
||||
XFixesClientPtr pXFixesClient = GetXFixesClient(client);
|
||||
xXFixesQueryVersionReply rep;
|
||||
xXFixesQueryVersionReply rep = {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = 0
|
||||
};
|
||||
|
||||
REQUEST(xXFixesQueryVersionReq);
|
||||
|
||||
REQUEST_SIZE_MATCH(xXFixesQueryVersionReq);
|
||||
memset(&rep, 0, sizeof(xXFixesQueryVersionReply));
|
||||
rep.type = X_Reply;
|
||||
rep.length = 0;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
|
||||
if (version_compare(stuff->majorVersion, stuff->minorVersion,
|
||||
SERVER_XFIXES_MAJOR_VERSION,
|
||||
|
|
|
|||
Loading…
Reference in a new issue