From b9044cd5c13461aa770d1b96a904ab5d31251d3e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 7 Aug 2024 13:50:34 +0200 Subject: [PATCH] Xext: shape: 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 Part-of: (cherry picked from commit a105c1f7a98c141f9e22e3edc64b3477765d3757) --- Xext/shape.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Xext/shape.c b/Xext/shape.c index 608df2061..92edc985b 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -1092,9 +1092,6 @@ SShapeNotifyEvent(xShapeNotifyEvent * from, xShapeNotifyEvent * to) static int _X_COLD SProcShapeQueryVersion(ClientPtr client) { - REQUEST(xShapeQueryVersionReq); - - swaps(&stuff->length); return ProcShapeQueryVersion(client); } @@ -1102,8 +1099,6 @@ static int _X_COLD SProcShapeRectangles(ClientPtr client) { REQUEST(xShapeRectanglesReq); - - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xShapeRectanglesReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1116,8 +1111,6 @@ static int _X_COLD SProcShapeMask(ClientPtr client) { REQUEST(xShapeMaskReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeMaskReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1130,8 +1123,6 @@ static int _X_COLD SProcShapeCombine(ClientPtr client) { REQUEST(xShapeCombineReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeCombineReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1144,8 +1135,6 @@ static int _X_COLD SProcShapeOffset(ClientPtr client) { REQUEST(xShapeOffsetReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeOffsetReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1157,8 +1146,6 @@ static int _X_COLD SProcShapeQueryExtents(ClientPtr client) { REQUEST(xShapeQueryExtentsReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeQueryExtentsReq); swapl(&stuff->window); return ProcShapeQueryExtents(client); @@ -1168,8 +1155,6 @@ static int _X_COLD SProcShapeSelectInput(ClientPtr client) { REQUEST(xShapeSelectInputReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeSelectInputReq); swapl(&stuff->window); return ProcShapeSelectInput(client); @@ -1179,8 +1164,6 @@ static int _X_COLD SProcShapeInputSelected(ClientPtr client) { REQUEST(xShapeInputSelectedReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeInputSelectedReq); swapl(&stuff->window); return ProcShapeInputSelected(client); @@ -1190,7 +1173,6 @@ static int _X_COLD SProcShapeGetRectangles(ClientPtr client) { REQUEST(xShapeGetRectanglesReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeGetRectanglesReq); swapl(&stuff->window); return ProcShapeGetRectangles(client);