mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
randr: use X_SEND_REPLY_SIMPLE() for sending simple replies
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
4aff0544ea
commit
331510cc8f
@@ -335,19 +335,10 @@ leaseReturned:
|
||||
RRLeaseChangeState(lease, RRLeaseCreating, RRLeaseRunning);
|
||||
|
||||
xRRCreateLeaseReply rep = {
|
||||
.type = X_Reply,
|
||||
.nfd = 1,
|
||||
.sequenceNumber = client->sequence,
|
||||
};
|
||||
|
||||
if (client->swapped) {
|
||||
swaps(&rep.sequenceNumber);
|
||||
swapl(&rep.length);
|
||||
}
|
||||
|
||||
WriteToClient(client, sizeof (rep), &rep);
|
||||
|
||||
return Success;
|
||||
return X_SEND_REPLY_SIMPLE(client, rep);
|
||||
|
||||
bail_lease:
|
||||
free(lease);
|
||||
|
||||
Reference in New Issue
Block a user