From 0d76ed8b2c16dca0fa7df82829496ceab895d3e0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 Aug 2024 14:43:45 +0200 Subject: [PATCH] (!1639) 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 --- damageext/damageext.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/damageext/damageext.c b/damageext/damageext.c index 6a46291fd..a9bec4e2c 100644 --- a/damageext/damageext.c +++ b/damageext/damageext.c @@ -494,8 +494,6 @@ static int _X_COLD SProcDamageQueryVersion(ClientPtr client) { REQUEST(xDamageQueryVersionReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDamageQueryVersionReq); swapl(&stuff->majorVersion); swapl(&stuff->minorVersion); @@ -506,8 +504,6 @@ static int _X_COLD SProcDamageCreate(ClientPtr client) { REQUEST(xDamageCreateReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDamageCreateReq); swapl(&stuff->damage); swapl(&stuff->drawable); @@ -518,8 +514,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); @@ -529,8 +523,6 @@ static int _X_COLD SProcDamageSubtract(ClientPtr client) { REQUEST(xDamageSubtractReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDamageSubtractReq); swapl(&stuff->damage); swapl(&stuff->repair); @@ -542,8 +534,6 @@ static int _X_COLD SProcDamageAdd(ClientPtr client) { REQUEST(xDamageAddReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDamageSubtractReq); swapl(&stuff->drawable); swapl(&stuff->region);