From 8b2dd8c22caec3c34be07f651fc0b0c5dbf5a9d2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 7 Aug 2024 13:50:34 +0200 Subject: [PATCH] (submit/fixup-req-len) 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 --- Xext/shape.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Xext/shape.c b/Xext/shape.c index b7631eb43..9e8ad41e4 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -1066,9 +1066,6 @@ SShapeNotifyEvent(xShapeNotifyEvent * from, xShapeNotifyEvent * to) static int _X_COLD SProcShapeQueryVersion(ClientPtr client) { - REQUEST(xShapeQueryVersionReq); - - swaps(&stuff->length); return ProcShapeQueryVersion(client); } @@ -1076,8 +1073,6 @@ static int _X_COLD SProcShapeRectangles(ClientPtr client) { REQUEST(xShapeRectanglesReq); - - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xShapeRectanglesReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1090,8 +1085,6 @@ static int _X_COLD SProcShapeMask(ClientPtr client) { REQUEST(xShapeMaskReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeMaskReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1104,8 +1097,6 @@ static int _X_COLD SProcShapeCombine(ClientPtr client) { REQUEST(xShapeCombineReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeCombineReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1118,8 +1109,6 @@ static int _X_COLD SProcShapeOffset(ClientPtr client) { REQUEST(xShapeOffsetReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeOffsetReq); swapl(&stuff->dest); swaps(&stuff->xOff); @@ -1131,8 +1120,6 @@ static int _X_COLD SProcShapeQueryExtents(ClientPtr client) { REQUEST(xShapeQueryExtentsReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeQueryExtentsReq); swapl(&stuff->window); return ProcShapeQueryExtents(client); @@ -1142,8 +1129,6 @@ static int _X_COLD SProcShapeSelectInput(ClientPtr client) { REQUEST(xShapeSelectInputReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeSelectInputReq); swapl(&stuff->window); return ProcShapeSelectInput(client); @@ -1153,8 +1138,6 @@ static int _X_COLD SProcShapeInputSelected(ClientPtr client) { REQUEST(xShapeInputSelectedReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeInputSelectedReq); swapl(&stuff->window); return ProcShapeInputSelected(client); @@ -1164,7 +1147,6 @@ static int _X_COLD SProcShapeGetRectangles(ClientPtr client) { REQUEST(xShapeGetRectanglesReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xShapeGetRectanglesReq); swapl(&stuff->window); return ProcShapeGetRectangles(client);