Xext: saver: 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:
parent
23a8d9be71
commit
b52f5f9693
|
@ -1275,9 +1275,6 @@ ProcScreenSaverDispatch(ClientPtr client)
|
||||||
static int _X_COLD
|
static int _X_COLD
|
||||||
SProcScreenSaverQueryVersion(ClientPtr client)
|
SProcScreenSaverQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xScreenSaverQueryVersionReq);
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverQueryVersionReq);
|
|
||||||
return ProcScreenSaverQueryVersion(client);
|
return ProcScreenSaverQueryVersion(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1285,7 +1282,6 @@ static int _X_COLD
|
||||||
SProcScreenSaverQueryInfo(ClientPtr client)
|
SProcScreenSaverQueryInfo(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xScreenSaverQueryInfoReq);
|
REQUEST(xScreenSaverQueryInfoReq);
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverQueryInfoReq);
|
REQUEST_SIZE_MATCH(xScreenSaverQueryInfoReq);
|
||||||
swapl(&stuff->drawable);
|
swapl(&stuff->drawable);
|
||||||
return ProcScreenSaverQueryInfo(client);
|
return ProcScreenSaverQueryInfo(client);
|
||||||
|
@ -1295,7 +1291,6 @@ static int _X_COLD
|
||||||
SProcScreenSaverSelectInput(ClientPtr client)
|
SProcScreenSaverSelectInput(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xScreenSaverSelectInputReq);
|
REQUEST(xScreenSaverSelectInputReq);
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverSelectInputReq);
|
REQUEST_SIZE_MATCH(xScreenSaverSelectInputReq);
|
||||||
swapl(&stuff->drawable);
|
swapl(&stuff->drawable);
|
||||||
swapl(&stuff->eventMask);
|
swapl(&stuff->eventMask);
|
||||||
|
@ -1306,7 +1301,6 @@ static int _X_COLD
|
||||||
SProcScreenSaverSetAttributes(ClientPtr client)
|
SProcScreenSaverSetAttributes(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xScreenSaverSetAttributesReq);
|
REQUEST(xScreenSaverSetAttributesReq);
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_AT_LEAST_SIZE(xScreenSaverSetAttributesReq);
|
REQUEST_AT_LEAST_SIZE(xScreenSaverSetAttributesReq);
|
||||||
swapl(&stuff->drawable);
|
swapl(&stuff->drawable);
|
||||||
swaps(&stuff->x);
|
swaps(&stuff->x);
|
||||||
|
@ -1324,7 +1318,6 @@ static int _X_COLD
|
||||||
SProcScreenSaverUnsetAttributes(ClientPtr client)
|
SProcScreenSaverUnsetAttributes(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xScreenSaverUnsetAttributesReq);
|
REQUEST(xScreenSaverUnsetAttributesReq);
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverUnsetAttributesReq);
|
REQUEST_SIZE_MATCH(xScreenSaverUnsetAttributesReq);
|
||||||
swapl(&stuff->drawable);
|
swapl(&stuff->drawable);
|
||||||
return ProcScreenSaverUnsetAttributes(client);
|
return ProcScreenSaverUnsetAttributes(client);
|
||||||
|
@ -1334,8 +1327,6 @@ static int _X_COLD
|
||||||
SProcScreenSaverSuspend(ClientPtr client)
|
SProcScreenSaverSuspend(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xScreenSaverSuspendReq);
|
REQUEST(xScreenSaverSuspendReq);
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverSuspendReq);
|
REQUEST_SIZE_MATCH(xScreenSaverSuspendReq);
|
||||||
swapl(&stuff->suspend);
|
swapl(&stuff->suspend);
|
||||||
return ProcScreenSaverSuspend(client);
|
return ProcScreenSaverSuspend(client);
|
||||||
|
|
Loading…
Reference in New Issue