mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 10:27:23 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user