xext: bigreq: 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 18:35:19 +02:00
committed by Enrico Weigelt
parent 6ad01ebfc7
commit a17a01bed4

View File

@@ -52,16 +52,12 @@ ProcBigReqDispatch(ClientPtr client)
client->big_requests = TRUE;
xBigReqEnableReply rep = {
.type = X_Reply,
.sequenceNumber = client->sequence,
.length = 0,
.max_request_size = maxBigRequestSize
};
if (client->swapped) {
swaps(&rep.sequenceNumber);
swapl(&rep.max_request_size);
}
WriteToClient(client, sizeof(xBigReqEnableReply), &rep);
X_SEND_REPLY_SIMPLE(client, rep);
return Success;
}