mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-12 04:55:49 +00:00
dix: dixfonts: doListFontsWithInfo(): use X_SEND_REPLY_SIMPLE()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Use X_SEND_REPLY_SIMPLE() for writing out the trivial empty reply. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
46b4154517
commit
ea3ef55be1
1 changed files with 5 additions and 12 deletions
|
|
@ -941,7 +941,7 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
|
|||
break;
|
||||
}
|
||||
else if (err == Successful) {
|
||||
length = sizeof(*reply) + pFontInfo->nprops * sizeof(xFontProp);
|
||||
length = sizeof(xListFontsWithInfoReply) + pFontInfo->nprops * sizeof(xFontProp);
|
||||
reply = c->reply;
|
||||
if (c->length < length) {
|
||||
reply = (xListFontsWithInfoReply *) realloc(c->reply, length);
|
||||
|
|
@ -995,17 +995,10 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
|
|||
--c->current.max_names;
|
||||
}
|
||||
}
|
||||
finish:
|
||||
length = sizeof(xListFontsWithInfoReply);
|
||||
xListFontsWithInfoReply rep = {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = X_REPLY_HEADER_UNITS(xListFontsWithInfoReply)
|
||||
};
|
||||
if (client->swapped) {
|
||||
SwapFont((xQueryFontReply *) &rep, FALSE);
|
||||
}
|
||||
WriteToClient(client, length, &rep);
|
||||
finish: ;
|
||||
/* finish it the replies series sending an empty reply */
|
||||
xListFontsWithInfoReply rep = { 0 };
|
||||
X_SEND_REPLY_SIMPLE(client, rep);
|
||||
bail:
|
||||
ClientWakeup(client);
|
||||
for (int i = 0; i < c->num_fpes; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue