From bfb2bc1919116204ff7c2ed087739ebb57df9bfc Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 3 Dec 2025 17:10:51 +0100 Subject: [PATCH] composite: consistenly name reply structs "reply" instead of "rep" Preparation for future use of generic reply assembly macros. Signed-off-by: Enrico Weigelt, metux IT consult --- composite/compext.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/composite/compext.c b/composite/compext.c index 0753f6c58b..e984bacb2b 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -113,25 +113,26 @@ ProcCompositeQueryVersion(ClientPtr client) CompositeClientPtr pCompositeClient = GetCompositeClient(client); - xCompositeQueryVersionReply rep = { + xCompositeQueryVersionReply reply = { .majorVersion = SERVER_COMPOSITE_MAJOR_VERSION, .minorVersion = SERVER_COMPOSITE_MINOR_VERSION }; /* if client asking for a lower version, use this one */ if (stuff->majorVersion < SERVER_COMPOSITE_MAJOR_VERSION) { - rep.majorVersion = stuff->majorVersion; - rep.minorVersion = stuff->minorVersion; + reply.majorVersion = stuff->majorVersion; + reply.minorVersion = stuff->minorVersion; } - pCompositeClient->major_version = rep.majorVersion; - pCompositeClient->minor_version = rep.minorVersion; + pCompositeClient->major_version = reply.majorVersion; + pCompositeClient->minor_version = reply.minorVersion; + if (client->swapped) { - swapl(&rep.majorVersion); - swapl(&rep.minorVersion); + swapl(&reply.majorVersion); + swapl(&reply.minorVersion); } - return X_SEND_REPLY_SIMPLE(client, rep); + return X_SEND_REPLY_SIMPLE(client, reply); } #define VERIFY_WINDOW(pWindow, wid, client, mode) \ @@ -306,15 +307,15 @@ SingleCompositeGetOverlayWindow(ClientPtr client, xCompositeGetOverlayWindowReq return rc; } - xCompositeGetOverlayWindowReply rep = { + xCompositeGetOverlayWindowReply reply = { .overlayWin = cs->pOverlayWin->drawable.id }; if (client->swapped) { - swapl(&rep.overlayWin); + swapl(&reply.overlayWin); } - return X_SEND_REPLY_SIMPLE(client, rep); + return X_SEND_REPLY_SIMPLE(client, reply); } static int @@ -765,15 +766,15 @@ ProcCompositeGetOverlayWindow(ClientPtr client) cs = GetCompScreen(dixGetMasterScreen()); - xCompositeGetOverlayWindowReply rep = { + xCompositeGetOverlayWindowReply reply = { .overlayWin = cs->pOverlayWin->drawable.id }; if (client->swapped) { - swapl(&rep.overlayWin); + swapl(&reply.overlayWin); } - return X_SEND_REPLY_SIMPLE(client, rep); + return X_SEND_REPLY_SIMPLE(client, reply); #else return SingleCompositeGetOverlayWindow(client, stuff); #endif /* XINERAMA */