From 70fa26fa853f362a69d75bb168be47644d2290ab Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 9 Jul 2024 11:57:20 +0200 Subject: [PATCH] damage: use REPLY_*() macros for preparing / sending replies Use the new macros for preparing and sending replies to clients. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/damage/damageext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Xext/damage/damageext.c b/Xext/damage/damageext.c index ab0f19b30c..53546e2558 100644 --- a/Xext/damage/damageext.c +++ b/Xext/damage/damageext.c @@ -231,12 +231,12 @@ ProcDamageQueryVersion(ClientPtr client) else reply.minorVersion = SERVER_DAMAGE_MINOR_VERSION; } + pDamageClient->major_version = reply.majorVersion; pDamageClient->minor_version = reply.minorVersion; - if (client->swapped) { - swapl(&reply.majorVersion); - swapl(&reply.minorVersion); - } + + REPLY_FIELD_CARD32(majorVersion); + REPLY_FIELD_CARD32(minorVersion); return X_SEND_REPLY_SIMPLE(client, reply); }