From 9a2cc5b6398f1b4901b9137ad24262ab124d14f7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 Aug 2024 14:38:46 +0200 Subject: [PATCH] (submit/fixup-req-len) record: 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 --- record/record.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/record/record.c b/record/record.c index 284a58ba9..64a6d4ddc 100644 --- a/record/record.c +++ b/record/record.c @@ -2488,8 +2488,6 @@ static int _X_COLD SProcRecordQueryVersion(ClientPtr client) { REQUEST(xRecordQueryVersionReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xRecordQueryVersionReq); swaps(&stuff->majorVersion); swaps(&stuff->minorVersion); @@ -2526,7 +2524,6 @@ SProcRecordCreateContext(ClientPtr client) REQUEST(xRecordCreateContextReq); int status; - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xRecordCreateContextReq); if ((status = SwapCreateRegister(client, (void *) stuff)) != Success) return status; @@ -2539,7 +2536,6 @@ SProcRecordRegisterClients(ClientPtr client) REQUEST(xRecordRegisterClientsReq); int status; - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xRecordRegisterClientsReq); if ((status = SwapCreateRegister(client, (void *) stuff)) != Success) return status; @@ -2550,8 +2546,6 @@ static int _X_COLD SProcRecordUnregisterClients(ClientPtr client) { REQUEST(xRecordUnregisterClientsReq); - - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xRecordUnregisterClientsReq); swapl(&stuff->context); swapl(&stuff->nClients); @@ -2563,8 +2557,6 @@ static int _X_COLD SProcRecordGetContext(ClientPtr client) { REQUEST(xRecordGetContextReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xRecordGetContextReq); swapl(&stuff->context); return ProcRecordGetContext(client); @@ -2574,8 +2566,6 @@ static int _X_COLD SProcRecordEnableContext(ClientPtr client) { REQUEST(xRecordEnableContextReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xRecordEnableContextReq); swapl(&stuff->context); return ProcRecordEnableContext(client); @@ -2585,8 +2575,6 @@ static int _X_COLD SProcRecordDisableContext(ClientPtr client) { REQUEST(xRecordDisableContextReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xRecordDisableContextReq); swapl(&stuff->context); return ProcRecordDisableContext(client); @@ -2596,8 +2584,6 @@ static int _X_COLD SProcRecordFreeContext(ClientPtr client) { REQUEST(xRecordFreeContextReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xRecordFreeContextReq); swapl(&stuff->context); return ProcRecordFreeContext(client);