mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
(cherry picked from commit 7e5c342be1)
This commit is contained in:
committed by
Alan Coopersmith
parent
9ba5814fcf
commit
5213d2bd24
@@ -561,8 +561,6 @@ ProcXF86DRIDispatch(register ClientPtr client)
|
||||
static int _X_COLD
|
||||
SProcXF86DRIQueryVersion(register ClientPtr client)
|
||||
{
|
||||
REQUEST(xXF86DRIQueryVersionReq);
|
||||
swaps(&stuff->length);
|
||||
return ProcXF86DRIQueryVersion(client);
|
||||
}
|
||||
|
||||
@@ -571,7 +569,6 @@ SProcXF86DRIQueryDirectRenderingCapable(register ClientPtr client)
|
||||
{
|
||||
REQUEST(xXF86DRIQueryDirectRenderingCapableReq);
|
||||
REQUEST_SIZE_MATCH(xXF86DRIQueryDirectRenderingCapableReq);
|
||||
swaps(&stuff->length);
|
||||
swapl(&stuff->screen);
|
||||
return ProcXF86DRIQueryDirectRenderingCapable(client);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,6 @@ validDrawable(ClientPtr client, XID drawable, Mask access_mode,
|
||||
static int
|
||||
ProcDRI2QueryVersion(ClientPtr client)
|
||||
{
|
||||
REQUEST(xDRI2QueryVersionReq);
|
||||
xDRI2QueryVersionReply rep = {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
@@ -81,9 +80,6 @@ ProcDRI2QueryVersion(ClientPtr client)
|
||||
.minorVersion = dri2_minor
|
||||
};
|
||||
|
||||
if (client->swapped)
|
||||
swaps(&stuff->length);
|
||||
|
||||
REQUEST_SIZE_MATCH(xDRI2QueryVersionReq);
|
||||
|
||||
if (client->swapped) {
|
||||
@@ -648,7 +644,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user