From 0c4f5e430aa2da2a70c4cfd3e52248bcc7427468 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 21 Aug 2025 18:43:13 +0200 Subject: [PATCH] xext: security: use X_SEND_REPLY_SIMPLE() Use X_SEND_REPLY_SIMPLE() for sending out simple replies. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/security.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Xext/security.c b/Xext/security.c index b03cbb193..022b96b3e 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -349,9 +349,6 @@ ProcSecurityQueryVersion(ClientPtr client) { /* REQUEST(xSecurityQueryVersionReq); */ xSecurityQueryVersionReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0, .majorVersion = SERVER_SECURITY_MAJOR_VERSION, .minorVersion = SERVER_SECURITY_MINOR_VERSION }; @@ -359,11 +356,10 @@ ProcSecurityQueryVersion(ClientPtr client) REQUEST_SIZE_MATCH(xSecurityQueryVersionReq); if (client->swapped) { - swaps(&rep.sequenceNumber); swaps(&rep.majorVersion); swaps(&rep.minorVersion); } - WriteToClient(client, SIZEOF(xSecurityQueryVersionReply), &rep); + X_SEND_REPLY_SIMPLE(client, rep); return Success; } /* ProcSecurityQueryVersion */