damage: 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
							
								
									fea6b99519
								
							
						
					
					
						commit
						7e2bbba067
					
				|  | @ -492,8 +492,6 @@ static int _X_COLD | |||
| SProcDamageQueryVersion(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xDamageQueryVersionReq); | ||||
| 
 | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xDamageQueryVersionReq); | ||||
|     swapl(&stuff->majorVersion); | ||||
|     swapl(&stuff->minorVersion); | ||||
|  | @ -504,8 +502,6 @@ static int _X_COLD | |||
| SProcDamageCreate(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xDamageCreateReq); | ||||
| 
 | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xDamageCreateReq); | ||||
|     swapl(&stuff->damage); | ||||
|     swapl(&stuff->drawable); | ||||
|  | @ -516,8 +512,6 @@ static int _X_COLD | |||
| SProcDamageDestroy(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xDamageDestroyReq); | ||||
| 
 | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xDamageDestroyReq); | ||||
|     swapl(&stuff->damage); | ||||
|     return (*ProcDamageVector[stuff->damageReqType]) (client); | ||||
|  | @ -527,8 +521,6 @@ static int _X_COLD | |||
| SProcDamageSubtract(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xDamageSubtractReq); | ||||
| 
 | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xDamageSubtractReq); | ||||
|     swapl(&stuff->damage); | ||||
|     swapl(&stuff->repair); | ||||
|  | @ -540,8 +532,6 @@ static int _X_COLD | |||
| SProcDamageAdd(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xDamageAddReq); | ||||
| 
 | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xDamageSubtractReq); | ||||
|     swapl(&stuff->drawable); | ||||
|     swapl(&stuff->region); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue