From 3d43102e9663f9e868ba080269aa06b0d4d370e5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 3 Dec 2025 17:01:48 +0100 Subject: [PATCH] present: 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 --- present/present_request.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/present/present_request.c b/present/present_request.c index 3560ec4149..212c7082da 100644 --- a/present/present_request.c +++ b/present/present_request.c @@ -33,7 +33,7 @@ static int proc_present_query_version(ClientPtr client) { REQUEST(xPresentQueryVersionReq); - xPresentQueryVersionReply rep = { + xPresentQueryVersionReply reply = { .majorVersion = SERVER_PRESENT_MAJOR_VERSION, .minorVersion = SERVER_PRESENT_MINOR_VERSION }; @@ -46,18 +46,18 @@ proc_present_query_version(ClientPtr client) * higher than the requested version. */ - if (rep.majorVersion > stuff->majorVersion || - rep.minorVersion > stuff->minorVersion) { - rep.majorVersion = stuff->majorVersion; - rep.minorVersion = stuff->minorVersion; + if (reply.majorVersion > stuff->majorVersion || + reply.minorVersion > stuff->minorVersion) { + reply.majorVersion = stuff->majorVersion; + reply.minorVersion = stuff->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_FENCE_OR_NONE(fence_ptr, fence_id, client, access) do { \ @@ -268,14 +268,14 @@ proc_present_query_capabilities (ClientPtr client) return r; } - xPresentQueryCapabilitiesReply rep = { + xPresentQueryCapabilitiesReply reply = { .capabilities = present_query_capabilities(crtc) }; if (client->swapped) { - swapl(&rep.capabilities); + swapl(&reply.capabilities); } - return X_SEND_REPLY_SIMPLE(client, rep); + return X_SEND_REPLY_SIMPLE(client, reply); } #ifdef DRI3