From f30407135e10ab2f3b3748e0cca3622ca1caf5d7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 7 Aug 2024 12:07:39 +0200 Subject: [PATCH] (!1639) dbe: 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 --- dbe/dbe.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/dbe/dbe.c b/dbe/dbe.c index 29cac9533..195097ce4 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -819,11 +819,7 @@ ProcDbeDispatch(ClientPtr client) static int _X_COLD SProcDbeGetVersion(ClientPtr client) { - REQUEST(xDbeGetVersionReq); - - swaps(&stuff->length); return (ProcDbeGetVersion(client)); - } /* SProcDbeGetVersion() */ /****************************************************************************** @@ -853,8 +849,6 @@ static int _X_COLD SProcDbeAllocateBackBufferName(ClientPtr client) { REQUEST(xDbeAllocateBackBufferNameReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDbeAllocateBackBufferNameReq); swapl(&stuff->window); @@ -886,8 +880,6 @@ static int _X_COLD SProcDbeDeallocateBackBufferName(ClientPtr client) { REQUEST(xDbeDeallocateBackBufferNameReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDbeDeallocateBackBufferNameReq); swapl(&stuff->buffer); @@ -924,7 +916,6 @@ SProcDbeSwapBuffers(ClientPtr client) unsigned int i; xDbeSwapInfo *pSwapInfo; - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xDbeSwapBuffersReq); swapl(&stuff->n); @@ -969,8 +960,6 @@ static int _X_COLD SProcDbeGetVisualInfo(ClientPtr client) { REQUEST(xDbeGetVisualInfoReq); - - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xDbeGetVisualInfoReq); swapl(&stuff->n); @@ -1000,8 +989,6 @@ static int _X_COLD SProcDbeGetBackBufferAttributes(ClientPtr client) { REQUEST(xDbeGetBackBufferAttributesReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xDbeGetBackBufferAttributesReq); swapl(&stuff->buffer);