Xext: bigreq: use REPLY_*() macros for preparing / sending replies
Use the new macros for preparing and sending replies to clients. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
f906f3afc4
commit
a7f9bcaf39
|
@ -47,24 +47,17 @@ ProcBigReqDispatch(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST_HEAD_STRUCT(xBigReqEnableReq);
|
REQUEST_HEAD_STRUCT(xBigReqEnableReq);
|
||||||
|
|
||||||
xBigReqEnableReply rep;
|
|
||||||
|
|
||||||
if (stuff->brReqType != X_BigReqEnable)
|
if (stuff->brReqType != X_BigReqEnable)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
|
|
||||||
client->big_requests = TRUE;
|
client->big_requests = TRUE;
|
||||||
rep = (xBigReqEnableReply) {
|
|
||||||
.type = X_Reply,
|
xBigReqEnableReply rep = {
|
||||||
.sequenceNumber = client->sequence,
|
|
||||||
.length = 0,
|
|
||||||
.max_request_size = maxBigRequestSize
|
.max_request_size = maxBigRequestSize
|
||||||
};
|
};
|
||||||
if (client->swapped) {
|
|
||||||
swaps(&rep.sequenceNumber);
|
REPLY_FIELD_CARD32(max_request_size);
|
||||||
swapl(&rep.max_request_size);
|
REPLY_SEND_RET_SUCCESS();
|
||||||
}
|
|
||||||
WriteToClient(client, sizeof(xBigReqEnableReply), &rep);
|
|
||||||
return Success;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue