From 0b10a36c8a6782b7e14456adc64d820340135b50 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 21 Aug 2025 19:16:55 +0200 Subject: [PATCH] xext: selinux: use X_SEND_REPLY_SIMPLE() Use X_SEND_REPLY_SIMPLE() for sending out simple replies. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xselinux_ext.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Xext/xselinux_ext.c b/Xext/xselinux_ext.c index 94b7458a9d..a38d19a69e 100644 --- a/Xext/xselinux_ext.c +++ b/Xext/xselinux_ext.c @@ -68,18 +68,14 @@ static int ProcSELinuxQueryVersion(ClientPtr client) { SELinuxQueryVersionReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, .server_major = SELINUX_MAJOR_VERSION, .server_minor = SELINUX_MINOR_VERSION }; if (client->swapped) { - swaps(&rep.sequenceNumber); - swapl(&rep.length); swaps(&rep.server_major); swaps(&rep.server_minor); } - WriteToClient(client, sizeof(rep), &rep); + X_SEND_REPLY_SIMPLE(client, rep); return Success; }