xfree86: 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-06 15:22:20 +02:00 committed by Marge Bot
parent 4d053f22f3
commit 7e5c342be1
2 changed files with 0 additions and 8 deletions

View File

@ -562,8 +562,6 @@ ProcXF86DRIDispatch(register ClientPtr client)
static int _X_COLD
SProcXF86DRIQueryVersion(register ClientPtr client)
{
REQUEST(xXF86DRIQueryVersionReq);
swaps(&stuff->length);
return ProcXF86DRIQueryVersion(client);
}
@ -572,7 +570,6 @@ SProcXF86DRIQueryDirectRenderingCapable(register ClientPtr client)
{
REQUEST(xXF86DRIQueryDirectRenderingCapableReq);
REQUEST_SIZE_MATCH(xXF86DRIQueryDirectRenderingCapableReq);
swaps(&stuff->length);
swapl(&stuff->screen);
return ProcXF86DRIQueryDirectRenderingCapable(client);
}

View File

@ -75,7 +75,6 @@ validDrawable(ClientPtr client, XID drawable, Mask access_mode,
static int
ProcDRI2QueryVersion(ClientPtr client)
{
REQUEST(xDRI2QueryVersionReq);
xDRI2QueryVersionReply rep = {
.type = X_Reply,
.sequenceNumber = client->sequence,
@ -84,9 +83,6 @@ ProcDRI2QueryVersion(ClientPtr client)
.minorVersion = dri2_minor
};
if (client->swapped)
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xDRI2QueryVersionReq);
if (client->swapped) {
@ -651,7 +647,6 @@ SProcDRI2Connect(ClientPtr client)
/* If the client is swapped, it's not local. Talk to the hand. */
swaps(&stuff->length);
if (sizeof(*stuff) / 4 != client->req_len)
return BadLength;