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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-07-17 10:51:55 +02:00
parent 08c40c9356
commit b258451ab9
2 changed files with 3 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);
}