Xext: xcmisc: drop swapping request length fields

The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-07 14:02:07 +02:00 committed by Marge Bot
parent 65cb5e5575
commit 405a227c73

View File

@ -144,8 +144,6 @@ static int _X_COLD
SProcXCMiscGetVersion(ClientPtr client) SProcXCMiscGetVersion(ClientPtr client)
{ {
REQUEST(xXCMiscGetVersionReq); REQUEST(xXCMiscGetVersionReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xXCMiscGetVersionReq); REQUEST_SIZE_MATCH(xXCMiscGetVersionReq);
swaps(&stuff->majorVersion); swaps(&stuff->majorVersion);
swaps(&stuff->minorVersion); swaps(&stuff->minorVersion);
@ -155,9 +153,6 @@ SProcXCMiscGetVersion(ClientPtr client)
static int _X_COLD static int _X_COLD
SProcXCMiscGetXIDRange(ClientPtr client) SProcXCMiscGetXIDRange(ClientPtr client)
{ {
REQUEST(xReq);
swaps(&stuff->length);
return ProcXCMiscGetXIDRange(client); return ProcXCMiscGetXIDRange(client);
} }
@ -167,7 +162,6 @@ SProcXCMiscGetXIDList(ClientPtr client)
REQUEST(xXCMiscGetXIDListReq); REQUEST(xXCMiscGetXIDListReq);
REQUEST_SIZE_MATCH(xXCMiscGetXIDListReq); REQUEST_SIZE_MATCH(xXCMiscGetXIDListReq);
swaps(&stuff->length);
swapl(&stuff->count); swapl(&stuff->count);
return ProcXCMiscGetXIDList(client); return ProcXCMiscGetXIDList(client);
} }