Xext: dpms: 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
4f56025812
commit
fb40f65ee0
32
Xext/dpms.c
32
Xext/dpms.c
|
@ -493,8 +493,6 @@ static int _X_COLD
|
||||||
SProcDPMSGetVersion(ClientPtr client)
|
SProcDPMSGetVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSGetVersionReq);
|
REQUEST(xDPMSGetVersionReq);
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSGetVersionReq);
|
REQUEST_SIZE_MATCH(xDPMSGetVersionReq);
|
||||||
swaps(&stuff->majorVersion);
|
swaps(&stuff->majorVersion);
|
||||||
swaps(&stuff->minorVersion);
|
swaps(&stuff->minorVersion);
|
||||||
|
@ -504,22 +502,12 @@ SProcDPMSGetVersion(ClientPtr client)
|
||||||
static int _X_COLD
|
static int _X_COLD
|
||||||
SProcDPMSCapable(ClientPtr client)
|
SProcDPMSCapable(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSCapableReq);
|
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSCapableReq);
|
|
||||||
|
|
||||||
return ProcDPMSCapable(client);
|
return ProcDPMSCapable(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _X_COLD
|
static int _X_COLD
|
||||||
SProcDPMSGetTimeouts(ClientPtr client)
|
SProcDPMSGetTimeouts(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSGetTimeoutsReq);
|
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq);
|
|
||||||
|
|
||||||
return ProcDPMSGetTimeouts(client);
|
return ProcDPMSGetTimeouts(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -527,8 +515,6 @@ static int _X_COLD
|
||||||
SProcDPMSSetTimeouts(ClientPtr client)
|
SProcDPMSSetTimeouts(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSSetTimeoutsReq);
|
REQUEST(xDPMSSetTimeoutsReq);
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSSetTimeoutsReq);
|
REQUEST_SIZE_MATCH(xDPMSSetTimeoutsReq);
|
||||||
|
|
||||||
swaps(&stuff->standby);
|
swaps(&stuff->standby);
|
||||||
|
@ -540,22 +526,12 @@ SProcDPMSSetTimeouts(ClientPtr client)
|
||||||
static int _X_COLD
|
static int _X_COLD
|
||||||
SProcDPMSEnable(ClientPtr client)
|
SProcDPMSEnable(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSEnableReq);
|
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSEnableReq);
|
|
||||||
|
|
||||||
return ProcDPMSEnable(client);
|
return ProcDPMSEnable(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _X_COLD
|
static int _X_COLD
|
||||||
SProcDPMSDisable(ClientPtr client)
|
SProcDPMSDisable(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSDisableReq);
|
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSDisableReq);
|
|
||||||
|
|
||||||
return ProcDPMSDisable(client);
|
return ProcDPMSDisable(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -563,8 +539,6 @@ static int _X_COLD
|
||||||
SProcDPMSForceLevel(ClientPtr client)
|
SProcDPMSForceLevel(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSForceLevelReq);
|
REQUEST(xDPMSForceLevelReq);
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSForceLevelReq);
|
REQUEST_SIZE_MATCH(xDPMSForceLevelReq);
|
||||||
|
|
||||||
swaps(&stuff->level);
|
swaps(&stuff->level);
|
||||||
|
@ -575,11 +549,6 @@ SProcDPMSForceLevel(ClientPtr client)
|
||||||
static int _X_COLD
|
static int _X_COLD
|
||||||
SProcDPMSInfo(ClientPtr client)
|
SProcDPMSInfo(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSInfoReq);
|
|
||||||
|
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSInfoReq);
|
|
||||||
|
|
||||||
return ProcDPMSInfo(client);
|
return ProcDPMSInfo(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -587,7 +556,6 @@ static int _X_COLD
|
||||||
SProcDPMSSelectInput(ClientPtr client)
|
SProcDPMSSelectInput(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDPMSSelectInputReq);
|
REQUEST(xDPMSSelectInputReq);
|
||||||
swaps(&stuff->length);
|
|
||||||
REQUEST_SIZE_MATCH(xDPMSSelectInputReq);
|
REQUEST_SIZE_MATCH(xDPMSSelectInputReq);
|
||||||
swapl(&stuff->eventMask);
|
swapl(&stuff->eventMask);
|
||||||
return ProcDPMSSelectInput(client);
|
return ProcDPMSSelectInput(client);
|
||||||
|
|
Loading…
Reference in New Issue