From b258451ab9d1d1fd99467c04eda1fbcd26b5be84 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 17 Jul 2024 10:51:55 +0200 Subject: [PATCH] dbe: 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/xres.c | 2 +- dbe/dbe.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Xext/xres.c b/Xext/xres.c index 1672f23d08..63983a68c3 100644 --- a/Xext/xres.c +++ b/Xext/xres.c @@ -420,7 +420,7 @@ ConstructClientIdValue(ClientPtr sendClient, ClientPtr client, CARD32 mask, REPLY_FIELD_CARD32(spec.mask); REPLY_FIELD_CARD32(length); // need to do it, since not calling REPLY_SEND() - if (sendClient->swapped) swapl (value); + REPLY_BUF_CARD32(value, 1); memcpy(ptr, &rep, sizeof(rep)); *value = pid; diff --git a/dbe/dbe.c b/dbe/dbe.c index 020ea94e18..f179b5079e 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -625,9 +625,7 @@ ProcDbeGetVisualInfo(ClientPtr client) .m = count }; - if (client->swapped) { - swapl(&reply.m); - } + REPLY_FIELD_CARD32(m); rc = X_SEND_REPLY_WITH_RPCBUF(client, reply, rpcbuf); @@ -675,9 +673,7 @@ ProcDbeGetBackBufferAttributes(ClientPtr client) reply.attributes = None; } - if (client->swapped) { - swapl(&reply.attributes); - } + REPLY_FIELD_CARD32(attributes); return X_SEND_REPLY_SIMPLE(client, reply); }