From 5bcbacce6c8010cf53c2e0c8fef7211ce0214a26 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 Aug 2024 14:39:53 +0200 Subject: [PATCH] present: 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: --- present/present_request.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/present/present_request.c b/present/present_request.c index cc947b11b..02f8846c8 100644 --- a/present/present_request.c +++ b/present/present_request.c @@ -343,7 +343,6 @@ sproc_present_query_version(ClientPtr client) REQUEST(xPresentQueryVersionReq); REQUEST_SIZE_MATCH(xPresentQueryVersionReq); - swaps(&stuff->length); swapl(&stuff->majorVersion); swapl(&stuff->minorVersion); return (*proc_present_vector[stuff->presentReqType]) (client); @@ -355,7 +354,6 @@ sproc_present_pixmap(ClientPtr client) REQUEST(xPresentPixmapReq); REQUEST_AT_LEAST_SIZE(xPresentPixmapReq); - swaps(&stuff->length); swapl(&stuff->window); swapl(&stuff->pixmap); swapl(&stuff->valid); @@ -375,7 +373,6 @@ sproc_present_notify_msc(ClientPtr client) REQUEST(xPresentNotifyMSCReq); REQUEST_SIZE_MATCH(xPresentNotifyMSCReq); - swaps(&stuff->length); swapl(&stuff->window); swapll(&stuff->target_msc); swapll(&stuff->divisor); @@ -389,7 +386,6 @@ sproc_present_select_input (ClientPtr client) REQUEST(xPresentSelectInputReq); REQUEST_SIZE_MATCH(xPresentSelectInputReq); - swaps(&stuff->length); swapl(&stuff->window); swapl(&stuff->eventMask); return (*proc_present_vector[stuff->presentReqType]) (client); @@ -400,7 +396,6 @@ sproc_present_query_capabilities (ClientPtr client) { REQUEST(xPresentQueryCapabilitiesReq); REQUEST_SIZE_MATCH(xPresentQueryCapabilitiesReq); - swaps(&stuff->length); swapl(&stuff->target); return (*proc_present_vector[stuff->presentReqType]) (client); } @@ -413,8 +408,6 @@ sproc_present_pixmap_synced(ClientPtr client) REQUEST(xPresentPixmapSyncedReq); REQUEST_AT_LEAST_SIZE(xPresentPixmapSyncedReq); - swaps(&stuff->length); - swapl(&stuff->window); swapl(&stuff->pixmap);