(!1639) record: 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>
This commit is contained in:
parent
f30407135e
commit
1aca289cb5
|
@ -2489,8 +2489,6 @@ static int _X_COLD
|
|||
SProcRecordQueryVersion(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRecordQueryVersionReq);
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_SIZE_MATCH(xRecordQueryVersionReq);
|
||||
swaps(&stuff->majorVersion);
|
||||
swaps(&stuff->minorVersion);
|
||||
|
@ -2527,7 +2525,6 @@ SProcRecordCreateContext(ClientPtr client)
|
|||
REQUEST(xRecordCreateContextReq);
|
||||
int status;
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_AT_LEAST_SIZE(xRecordCreateContextReq);
|
||||
if ((status = SwapCreateRegister(client, (void *) stuff)) != Success)
|
||||
return status;
|
||||
|
@ -2540,7 +2537,6 @@ SProcRecordRegisterClients(ClientPtr client)
|
|||
REQUEST(xRecordRegisterClientsReq);
|
||||
int status;
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_AT_LEAST_SIZE(xRecordRegisterClientsReq);
|
||||
if ((status = SwapCreateRegister(client, (void *) stuff)) != Success)
|
||||
return status;
|
||||
|
@ -2551,8 +2547,6 @@ static int _X_COLD
|
|||
SProcRecordUnregisterClients(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRecordUnregisterClientsReq);
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_AT_LEAST_SIZE(xRecordUnregisterClientsReq);
|
||||
swapl(&stuff->context);
|
||||
swapl(&stuff->nClients);
|
||||
|
@ -2564,8 +2558,6 @@ static int _X_COLD
|
|||
SProcRecordGetContext(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRecordGetContextReq);
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_SIZE_MATCH(xRecordGetContextReq);
|
||||
swapl(&stuff->context);
|
||||
return ProcRecordGetContext(client);
|
||||
|
@ -2575,8 +2567,6 @@ static int _X_COLD
|
|||
SProcRecordEnableContext(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRecordEnableContextReq);
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_SIZE_MATCH(xRecordEnableContextReq);
|
||||
swapl(&stuff->context);
|
||||
return ProcRecordEnableContext(client);
|
||||
|
@ -2586,8 +2576,6 @@ static int _X_COLD
|
|||
SProcRecordDisableContext(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRecordDisableContextReq);
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_SIZE_MATCH(xRecordDisableContextReq);
|
||||
swapl(&stuff->context);
|
||||
return ProcRecordDisableContext(client);
|
||||
|
@ -2597,8 +2585,6 @@ static int _X_COLD
|
|||
SProcRecordFreeContext(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRecordFreeContextReq);
|
||||
|
||||
swaps(&stuff->length);
|
||||
REQUEST_SIZE_MATCH(xRecordFreeContextReq);
|
||||
swapl(&stuff->context);
|
||||
return ProcRecordFreeContext(client);
|
||||
|
|
Loading…
Reference in New Issue