(submit/fixup-req-len) 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 <info@metux.net>
This commit is contained in:
		
							parent
							
								
									81f68f5442
								
							
						
					
					
						commit
						eb6d712e31
					
				
							
								
								
									
										13
									
								
								dbe/dbe.c
								
								
								
								
							
							
						
						
									
										13
									
								
								dbe/dbe.c
								
								
								
								
							| 
						 | 
					@ -819,11 +819,7 @@ ProcDbeDispatch(ClientPtr client)
 | 
				
			||||||
static int _X_COLD
 | 
					static int _X_COLD
 | 
				
			||||||
SProcDbeGetVersion(ClientPtr client)
 | 
					SProcDbeGetVersion(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    REQUEST(xDbeGetVersionReq);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    swaps(&stuff->length);
 | 
					 | 
				
			||||||
    return (ProcDbeGetVersion(client));
 | 
					    return (ProcDbeGetVersion(client));
 | 
				
			||||||
 | 
					 | 
				
			||||||
}                               /* SProcDbeGetVersion() */
 | 
					}                               /* SProcDbeGetVersion() */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/******************************************************************************
 | 
					/******************************************************************************
 | 
				
			||||||
| 
						 | 
					@ -853,8 +849,6 @@ static int _X_COLD
 | 
				
			||||||
SProcDbeAllocateBackBufferName(ClientPtr client)
 | 
					SProcDbeAllocateBackBufferName(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    REQUEST(xDbeAllocateBackBufferNameReq);
 | 
					    REQUEST(xDbeAllocateBackBufferNameReq);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    swaps(&stuff->length);
 | 
					 | 
				
			||||||
    REQUEST_SIZE_MATCH(xDbeAllocateBackBufferNameReq);
 | 
					    REQUEST_SIZE_MATCH(xDbeAllocateBackBufferNameReq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    swapl(&stuff->window);
 | 
					    swapl(&stuff->window);
 | 
				
			||||||
| 
						 | 
					@ -886,8 +880,6 @@ static int _X_COLD
 | 
				
			||||||
SProcDbeDeallocateBackBufferName(ClientPtr client)
 | 
					SProcDbeDeallocateBackBufferName(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    REQUEST(xDbeDeallocateBackBufferNameReq);
 | 
					    REQUEST(xDbeDeallocateBackBufferNameReq);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    swaps(&stuff->length);
 | 
					 | 
				
			||||||
    REQUEST_SIZE_MATCH(xDbeDeallocateBackBufferNameReq);
 | 
					    REQUEST_SIZE_MATCH(xDbeDeallocateBackBufferNameReq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    swapl(&stuff->buffer);
 | 
					    swapl(&stuff->buffer);
 | 
				
			||||||
| 
						 | 
					@ -924,7 +916,6 @@ SProcDbeSwapBuffers(ClientPtr client)
 | 
				
			||||||
    unsigned int i;
 | 
					    unsigned int i;
 | 
				
			||||||
    xDbeSwapInfo *pSwapInfo;
 | 
					    xDbeSwapInfo *pSwapInfo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    swaps(&stuff->length);
 | 
					 | 
				
			||||||
    REQUEST_AT_LEAST_SIZE(xDbeSwapBuffersReq);
 | 
					    REQUEST_AT_LEAST_SIZE(xDbeSwapBuffersReq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    swapl(&stuff->n);
 | 
					    swapl(&stuff->n);
 | 
				
			||||||
| 
						 | 
					@ -969,8 +960,6 @@ static int _X_COLD
 | 
				
			||||||
SProcDbeGetVisualInfo(ClientPtr client)
 | 
					SProcDbeGetVisualInfo(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    REQUEST(xDbeGetVisualInfoReq);
 | 
					    REQUEST(xDbeGetVisualInfoReq);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    swaps(&stuff->length);
 | 
					 | 
				
			||||||
    REQUEST_AT_LEAST_SIZE(xDbeGetVisualInfoReq);
 | 
					    REQUEST_AT_LEAST_SIZE(xDbeGetVisualInfoReq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    swapl(&stuff->n);
 | 
					    swapl(&stuff->n);
 | 
				
			||||||
| 
						 | 
					@ -1000,8 +989,6 @@ static int _X_COLD
 | 
				
			||||||
SProcDbeGetBackBufferAttributes(ClientPtr client)
 | 
					SProcDbeGetBackBufferAttributes(ClientPtr client)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    REQUEST(xDbeGetBackBufferAttributesReq);
 | 
					    REQUEST(xDbeGetBackBufferAttributesReq);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    swaps(&stuff->length);
 | 
					 | 
				
			||||||
    REQUEST_SIZE_MATCH(xDbeGetBackBufferAttributesReq);
 | 
					    REQUEST_SIZE_MATCH(xDbeGetBackBufferAttributesReq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    swapl(&stuff->buffer);
 | 
					    swapl(&stuff->buffer);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue