From 02f9e46d688f974d45d9b798acad4d560cd59909 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 7fe4ad513..e51d1e9df 100644 --- a/damageext/damageext.c +++ b/damageext/damageext.c @@ -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);