From 405a227c7395f5b8a93298b005d80eb8087a9780 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 7 Aug 2024 14:02:07 +0200 Subject: [PATCH] Xext: xcmisc: 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: --- Xext/xcmisc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Xext/xcmisc.c b/Xext/xcmisc.c index b70e54ed4..1e4765d9a 100644 --- a/Xext/xcmisc.c +++ b/Xext/xcmisc.c @@ -144,8 +144,6 @@ static int _X_COLD SProcXCMiscGetVersion(ClientPtr client) { REQUEST(xXCMiscGetVersionReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xXCMiscGetVersionReq); swaps(&stuff->majorVersion); swaps(&stuff->minorVersion); @@ -155,9 +153,6 @@ SProcXCMiscGetVersion(ClientPtr client) static int _X_COLD SProcXCMiscGetXIDRange(ClientPtr client) { - REQUEST(xReq); - - swaps(&stuff->length); return ProcXCMiscGetXIDRange(client); } @@ -167,7 +162,6 @@ SProcXCMiscGetXIDList(ClientPtr client) REQUEST(xXCMiscGetXIDListReq); REQUEST_SIZE_MATCH(xXCMiscGetXIDListReq); - swaps(&stuff->length); swapl(&stuff->count); return ProcXCMiscGetXIDList(client); }