xext: xf86bigfont: use X_SEND_REPLY_SIMPLE()

Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-08-21 19:08:54 +02:00 committed by Enrico Weigelt
parent 0f0d95d50a
commit ab597b8d98

View File

@ -264,8 +264,6 @@ ProcXF86BigfontQueryVersion(ClientPtr client)
REQUEST_SIZE_MATCH(xXF86BigfontQueryVersionReq);
xXF86BigfontQueryVersionReply reply = {
.type = X_Reply,
.sequenceNumber = client->sequence,
.majorVersion = SERVER_XF86BIGFONT_MAJOR_VERSION,
.minorVersion = SERVER_XF86BIGFONT_MINOR_VERSION,
.uid = geteuid(),
@ -277,15 +275,13 @@ ProcXF86BigfontQueryVersion(ClientPtr client)
#endif /* CONFIG_MITSHM */
};
if (client->swapped) {
swaps(&reply.sequenceNumber);
swapl(&reply.length);
swaps(&reply.majorVersion);
swaps(&reply.minorVersion);
swapl(&reply.uid);
swapl(&reply.gid);
swapl(&reply.signature);
}
WriteToClient(client, sizeof(xXF86BigfontQueryVersionReply), &reply);
X_SEND_REPLY_SIMPLE(client, reply);
return Success;
}