mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
record: use X_SEND_REPLY_SIMPLE() for simple replies
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
5ea2496d20
commit
91e04e4ec6
@@ -1822,22 +1822,18 @@ ProcRecordQueryVersion(ClientPtr client)
|
||||
{
|
||||
/* REQUEST(xRecordQueryVersionReq); */
|
||||
xRecordQueryVersionReply rep = {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = 0,
|
||||
.majorVersion = SERVER_RECORD_MAJOR_VERSION,
|
||||
.minorVersion = SERVER_RECORD_MINOR_VERSION
|
||||
};
|
||||
|
||||
REQUEST_SIZE_MATCH(xRecordQueryVersionReq);
|
||||
if (client->swapped) {
|
||||
swaps(&rep.sequenceNumber);
|
||||
swaps(&rep.majorVersion);
|
||||
swaps(&rep.minorVersion);
|
||||
}
|
||||
WriteToClient(client, sizeof(xRecordQueryVersionReply), &rep);
|
||||
return Success;
|
||||
} /* ProcRecordQueryVersion */
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, rep);
|
||||
}
|
||||
|
||||
static int
|
||||
ProcRecordCreateContext(ClientPtr client)
|
||||
|
||||
Reference in New Issue
Block a user