From bf73c46c84bcfbceec6cb9b71bb7a76d51792b1f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 Aug 2024 15:20:47 +0200 Subject: [PATCH] (!1639) Xext: xtest: 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/xtest.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Xext/xtest.c b/Xext/xtest.c index 0492c3656..581e5a787 100644 --- a/Xext/xtest.c +++ b/Xext/xtest.c @@ -372,7 +372,6 @@ ProcXTestFakeInput(ClientPtr client) /* swap the request back so we can simply re-execute it */ if (client->swapped) { (void) XTestSwapFakeInput(client, (xReq *) stuff); - swaps(&stuff->length); } ResetCurrentRequest(client); client->sequence--; @@ -486,8 +485,6 @@ static int _X_COLD SProcXTestGetVersion(ClientPtr client) { REQUEST(xXTestGetVersionReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xXTestGetVersionReq); swaps(&stuff->minorVersion); return ProcXTestGetVersion(client); @@ -497,8 +494,6 @@ static int _X_COLD SProcXTestCompareCursor(ClientPtr client) { REQUEST(xXTestCompareCursorReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xXTestCompareCursorReq); swapl(&stuff->window); swapl(&stuff->cursor); @@ -536,7 +531,6 @@ SProcXTestFakeInput(ClientPtr client) REQUEST(xReq); - swaps(&stuff->length); n = XTestSwapFakeInput(client, stuff); if (n != Success) return n; @@ -546,10 +540,6 @@ SProcXTestFakeInput(ClientPtr client) static int _X_COLD SProcXTestGrabControl(ClientPtr client) { - REQUEST(xXTestGrabControlReq); - - swaps(&stuff->length); - REQUEST_SIZE_MATCH(xXTestGrabControlReq); return ProcXTestGrabControl(client); }