Xext: sync: 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> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639>
This commit is contained in:
		
							parent
							
								
									75544f1f58
								
							
						
					
					
						commit
						bf6d132df6
					
				
							
								
								
									
										26
									
								
								Xext/sync.c
								
								
								
								
							
							
						
						
									
										26
									
								
								Xext/sync.c
								
								
								
								
							|  | @ -2154,20 +2154,12 @@ ProcSyncDispatch(ClientPtr client) | |||
| static int _X_COLD | ||||
| SProcSyncInitialize(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncInitializeReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncInitializeReq); | ||||
| 
 | ||||
|     return ProcSyncInitialize(client); | ||||
| } | ||||
| 
 | ||||
| static int _X_COLD | ||||
| SProcSyncListSystemCounters(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncListSystemCountersReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncListSystemCountersReq); | ||||
| 
 | ||||
|     return ProcSyncListSystemCounters(client); | ||||
| } | ||||
| 
 | ||||
|  | @ -2175,7 +2167,6 @@ static int _X_COLD | |||
| SProcSyncCreateCounter(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncCreateCounterReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncCreateCounterReq); | ||||
|     swapl(&stuff->cid); | ||||
|     swapl(&stuff->initial_value_lo); | ||||
|  | @ -2188,7 +2179,6 @@ static int _X_COLD | |||
| SProcSyncSetCounter(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncSetCounterReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncSetCounterReq); | ||||
|     swapl(&stuff->cid); | ||||
|     swapl(&stuff->value_lo); | ||||
|  | @ -2201,7 +2191,6 @@ static int _X_COLD | |||
| SProcSyncChangeCounter(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncChangeCounterReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncChangeCounterReq); | ||||
|     swapl(&stuff->cid); | ||||
|     swapl(&stuff->value_lo); | ||||
|  | @ -2214,7 +2203,6 @@ static int _X_COLD | |||
| SProcSyncQueryCounter(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncQueryCounterReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncQueryCounterReq); | ||||
|     swapl(&stuff->counter); | ||||
| 
 | ||||
|  | @ -2225,7 +2213,6 @@ static int _X_COLD | |||
| SProcSyncDestroyCounter(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncDestroyCounterReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncDestroyCounterReq); | ||||
|     swapl(&stuff->counter); | ||||
| 
 | ||||
|  | @ -2236,7 +2223,6 @@ static int _X_COLD | |||
| SProcSyncAwait(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncAwaitReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_AT_LEAST_SIZE(xSyncAwaitReq); | ||||
|     SwapRestL(stuff); | ||||
| 
 | ||||
|  | @ -2247,7 +2233,6 @@ static int _X_COLD | |||
| SProcSyncCreateAlarm(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncCreateAlarmReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_AT_LEAST_SIZE(xSyncCreateAlarmReq); | ||||
|     swapl(&stuff->id); | ||||
|     swapl(&stuff->valueMask); | ||||
|  | @ -2260,7 +2245,6 @@ static int _X_COLD | |||
| SProcSyncChangeAlarm(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncChangeAlarmReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_AT_LEAST_SIZE(xSyncChangeAlarmReq); | ||||
|     swapl(&stuff->alarm); | ||||
|     swapl(&stuff->valueMask); | ||||
|  | @ -2272,7 +2256,6 @@ static int _X_COLD | |||
| SProcSyncQueryAlarm(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncQueryAlarmReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncQueryAlarmReq); | ||||
|     swapl(&stuff->alarm); | ||||
| 
 | ||||
|  | @ -2283,7 +2266,6 @@ static int _X_COLD | |||
| SProcSyncDestroyAlarm(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncDestroyAlarmReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncDestroyAlarmReq); | ||||
|     swapl(&stuff->alarm); | ||||
| 
 | ||||
|  | @ -2294,7 +2276,6 @@ static int _X_COLD | |||
| SProcSyncSetPriority(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncSetPriorityReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncSetPriorityReq); | ||||
|     swapl(&stuff->id); | ||||
|     swapl(&stuff->priority); | ||||
|  | @ -2306,7 +2287,6 @@ static int _X_COLD | |||
| SProcSyncGetPriority(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncGetPriorityReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncGetPriorityReq); | ||||
|     swapl(&stuff->id); | ||||
| 
 | ||||
|  | @ -2317,7 +2297,6 @@ static int _X_COLD | |||
| SProcSyncCreateFence(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncCreateFenceReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncCreateFenceReq); | ||||
|     swapl(&stuff->d); | ||||
|     swapl(&stuff->fid); | ||||
|  | @ -2329,7 +2308,6 @@ static int _X_COLD | |||
| SProcSyncTriggerFence(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncTriggerFenceReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncTriggerFenceReq); | ||||
|     swapl(&stuff->fid); | ||||
| 
 | ||||
|  | @ -2340,7 +2318,6 @@ static int _X_COLD | |||
| SProcSyncResetFence(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncResetFenceReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncResetFenceReq); | ||||
|     swapl(&stuff->fid); | ||||
| 
 | ||||
|  | @ -2351,7 +2328,6 @@ static int _X_COLD | |||
| SProcSyncDestroyFence(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncDestroyFenceReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncDestroyFenceReq); | ||||
|     swapl(&stuff->fid); | ||||
| 
 | ||||
|  | @ -2362,7 +2338,6 @@ static int _X_COLD | |||
| SProcSyncQueryFence(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncQueryFenceReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_SIZE_MATCH(xSyncQueryFenceReq); | ||||
|     swapl(&stuff->fid); | ||||
| 
 | ||||
|  | @ -2373,7 +2348,6 @@ static int _X_COLD | |||
| SProcSyncAwaitFence(ClientPtr client) | ||||
| { | ||||
|     REQUEST(xSyncAwaitFenceReq); | ||||
|     swaps(&stuff->length); | ||||
|     REQUEST_AT_LEAST_SIZE(xSyncAwaitFenceReq); | ||||
|     SwapRestL(stuff); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue