(!1639) xquartz: 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
							
								
									dffd384134
								
							
						
					
					
						commit
						faaf450cd9
					
				|  | @ -692,7 +692,6 @@ static int | ||||||
| SProcAppleWMQueryVersion(register ClientPtr client) | SProcAppleWMQueryVersion(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleWMQueryVersionReq); |     REQUEST(xAppleWMQueryVersionReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     return ProcAppleWMQueryVersion(client); |     return ProcAppleWMQueryVersion(client); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -397,7 +397,6 @@ static int | ||||||
| SProcAppleDRIQueryVersion(register ClientPtr client) | SProcAppleDRIQueryVersion(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRIQueryVersionReq); |     REQUEST(xAppleDRIQueryVersionReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     return ProcAppleDRIQueryVersion(client); |     return ProcAppleDRIQueryVersion(client); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -405,7 +404,6 @@ static int | ||||||
| SProcAppleDRIQueryDirectRenderingCapable(register ClientPtr client) | SProcAppleDRIQueryDirectRenderingCapable(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRIQueryDirectRenderingCapableReq); |     REQUEST(xAppleDRIQueryDirectRenderingCapableReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     REQUEST_SIZE_MATCH(xAppleDRIQueryDirectRenderingCapableReq); |     REQUEST_SIZE_MATCH(xAppleDRIQueryDirectRenderingCapableReq); | ||||||
|     swapl(&stuff->screen); |     swapl(&stuff->screen); | ||||||
|     return ProcAppleDRIQueryDirectRenderingCapable(client); |     return ProcAppleDRIQueryDirectRenderingCapable(client); | ||||||
|  | @ -415,7 +413,6 @@ static int | ||||||
| SProcAppleDRIAuthConnection(register ClientPtr client) | SProcAppleDRIAuthConnection(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRIAuthConnectionReq); |     REQUEST(xAppleDRIAuthConnectionReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     REQUEST_SIZE_MATCH(xAppleDRIAuthConnectionReq); |     REQUEST_SIZE_MATCH(xAppleDRIAuthConnectionReq); | ||||||
|     swapl(&stuff->screen); |     swapl(&stuff->screen); | ||||||
|     swapl(&stuff->magic); |     swapl(&stuff->magic); | ||||||
|  | @ -426,7 +423,6 @@ static int | ||||||
| SProcAppleDRICreateSurface(register ClientPtr client) | SProcAppleDRICreateSurface(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRICreateSurfaceReq); |     REQUEST(xAppleDRICreateSurfaceReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     REQUEST_SIZE_MATCH(xAppleDRICreateSurfaceReq); |     REQUEST_SIZE_MATCH(xAppleDRICreateSurfaceReq); | ||||||
|     swapl(&stuff->screen); |     swapl(&stuff->screen); | ||||||
|     swapl(&stuff->drawable); |     swapl(&stuff->drawable); | ||||||
|  | @ -438,7 +434,6 @@ static int | ||||||
| SProcAppleDRIDestroySurface(register ClientPtr client) | SProcAppleDRIDestroySurface(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRIDestroySurfaceReq); |     REQUEST(xAppleDRIDestroySurfaceReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     REQUEST_SIZE_MATCH(xAppleDRIDestroySurfaceReq); |     REQUEST_SIZE_MATCH(xAppleDRIDestroySurfaceReq); | ||||||
|     swapl(&stuff->screen); |     swapl(&stuff->screen); | ||||||
|     swapl(&stuff->drawable); |     swapl(&stuff->drawable); | ||||||
|  | @ -449,7 +444,6 @@ static int | ||||||
| SProcAppleDRICreatePixmap(register ClientPtr client) | SProcAppleDRICreatePixmap(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRICreatePixmapReq); |     REQUEST(xAppleDRICreatePixmapReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq); |     REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq); | ||||||
|     swapl(&stuff->screen); |     swapl(&stuff->screen); | ||||||
|     swapl(&stuff->drawable); |     swapl(&stuff->drawable); | ||||||
|  | @ -460,7 +454,6 @@ static int | ||||||
| SProcAppleDRIDestroyPixmap(register ClientPtr client) | SProcAppleDRIDestroyPixmap(register ClientPtr client) | ||||||
| { | { | ||||||
|     REQUEST(xAppleDRIDestroyPixmapReq); |     REQUEST(xAppleDRIDestroyPixmapReq); | ||||||
|     swaps(&stuff->length); |  | ||||||
|     REQUEST_SIZE_MATCH(xAppleDRIDestroyPixmapReq); |     REQUEST_SIZE_MATCH(xAppleDRIDestroyPixmapReq); | ||||||
|     swapl(&stuff->drawable); |     swapl(&stuff->drawable); | ||||||
|     return ProcAppleDRIDestroyPixmap(client); |     return ProcAppleDRIDestroyPixmap(client); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue