mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +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:
@@ -267,7 +267,11 @@ static int
|
||||
ProcRenderQueryVersion(ClientPtr client)
|
||||
{
|
||||
RenderClientPtr pRenderClient = GetRenderClient(client);
|
||||
xRenderQueryVersionReply rep;
|
||||
xRenderQueryVersionReply rep = {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = 0
|
||||
};
|
||||
|
||||
REQUEST(xRenderQueryVersionReq);
|
||||
|
||||
@@ -275,10 +279,6 @@ ProcRenderQueryVersion(ClientPtr client)
|
||||
pRenderClient->minor_version = stuff->minorVersion;
|
||||
|
||||
REQUEST_SIZE_MATCH(xRenderQueryVersionReq);
|
||||
memset(&rep, 0, sizeof(xRenderQueryVersionReply));
|
||||
rep.type = X_Reply;
|
||||
rep.length = 0;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
|
||||
if ((stuff->majorVersion * 1000 + stuff->minorVersion) <
|
||||
(SERVER_RENDER_MAJOR_VERSION * 1000 + SERVER_RENDER_MINOR_VERSION)) {
|
||||
|
||||
Reference in New Issue
Block a user