From 9a94514314ee97f17a974e64ff4826a71d8acaf0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 7 Aug 2024 13:54:37 +0200 Subject: [PATCH] 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 Part-of: (cherry picked from commit bf6d132df667392487c97d1d59221d5e2cee86a5) --- Xext/sync.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/Xext/sync.c b/Xext/sync.c index bce7d76a5..3b61700f7 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -2156,20 +2156,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); } @@ -2177,7 +2169,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); @@ -2190,7 +2181,6 @@ static int _X_COLD SProcSyncSetCounter(ClientPtr client) { REQUEST(xSyncSetCounterReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncSetCounterReq); swapl(&stuff->cid); swapl(&stuff->value_lo); @@ -2203,7 +2193,6 @@ static int _X_COLD SProcSyncChangeCounter(ClientPtr client) { REQUEST(xSyncChangeCounterReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncChangeCounterReq); swapl(&stuff->cid); swapl(&stuff->value_lo); @@ -2216,7 +2205,6 @@ static int _X_COLD SProcSyncQueryCounter(ClientPtr client) { REQUEST(xSyncQueryCounterReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncQueryCounterReq); swapl(&stuff->counter); @@ -2227,7 +2215,6 @@ static int _X_COLD SProcSyncDestroyCounter(ClientPtr client) { REQUEST(xSyncDestroyCounterReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncDestroyCounterReq); swapl(&stuff->counter); @@ -2238,7 +2225,6 @@ static int _X_COLD SProcSyncAwait(ClientPtr client) { REQUEST(xSyncAwaitReq); - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xSyncAwaitReq); SwapRestL(stuff); @@ -2249,7 +2235,6 @@ static int _X_COLD SProcSyncCreateAlarm(ClientPtr client) { REQUEST(xSyncCreateAlarmReq); - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xSyncCreateAlarmReq); swapl(&stuff->id); swapl(&stuff->valueMask); @@ -2262,7 +2247,6 @@ static int _X_COLD SProcSyncChangeAlarm(ClientPtr client) { REQUEST(xSyncChangeAlarmReq); - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xSyncChangeAlarmReq); swapl(&stuff->alarm); swapl(&stuff->valueMask); @@ -2274,7 +2258,6 @@ static int _X_COLD SProcSyncQueryAlarm(ClientPtr client) { REQUEST(xSyncQueryAlarmReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncQueryAlarmReq); swapl(&stuff->alarm); @@ -2285,7 +2268,6 @@ static int _X_COLD SProcSyncDestroyAlarm(ClientPtr client) { REQUEST(xSyncDestroyAlarmReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncDestroyAlarmReq); swapl(&stuff->alarm); @@ -2296,7 +2278,6 @@ static int _X_COLD SProcSyncSetPriority(ClientPtr client) { REQUEST(xSyncSetPriorityReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncSetPriorityReq); swapl(&stuff->id); swapl(&stuff->priority); @@ -2308,7 +2289,6 @@ static int _X_COLD SProcSyncGetPriority(ClientPtr client) { REQUEST(xSyncGetPriorityReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncGetPriorityReq); swapl(&stuff->id); @@ -2319,7 +2299,6 @@ static int _X_COLD SProcSyncCreateFence(ClientPtr client) { REQUEST(xSyncCreateFenceReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncCreateFenceReq); swapl(&stuff->d); swapl(&stuff->fid); @@ -2331,7 +2310,6 @@ static int _X_COLD SProcSyncTriggerFence(ClientPtr client) { REQUEST(xSyncTriggerFenceReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncTriggerFenceReq); swapl(&stuff->fid); @@ -2342,7 +2320,6 @@ static int _X_COLD SProcSyncResetFence(ClientPtr client) { REQUEST(xSyncResetFenceReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncResetFenceReq); swapl(&stuff->fid); @@ -2353,7 +2330,6 @@ static int _X_COLD SProcSyncDestroyFence(ClientPtr client) { REQUEST(xSyncDestroyFenceReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncDestroyFenceReq); swapl(&stuff->fid); @@ -2364,7 +2340,6 @@ static int _X_COLD SProcSyncQueryFence(ClientPtr client) { REQUEST(xSyncQueryFenceReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSyncQueryFenceReq); swapl(&stuff->fid); @@ -2375,7 +2350,6 @@ static int _X_COLD SProcSyncAwaitFence(ClientPtr client) { REQUEST(xSyncAwaitFenceReq); - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xSyncAwaitFenceReq); SwapRestL(stuff);