From 4486a554f85665b058b706e953c933d85f0a6378 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 17 Sep 2025 11:32:12 +0200 Subject: [PATCH] dbe: Xi: use return value of X_SEND_REPLY_SIMPLE() Signed-off-by: Enrico Weigelt, metux IT consult --- dbe/dbe.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/dbe/dbe.c b/dbe/dbe.c index d9217f7c4a..178c1c47fc 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -112,19 +112,16 @@ DbeStubScreen(DbeScreenPrivPtr pDbeScreenPriv, int *nStubbedScreens) static int ProcDbeGetVersion(ClientPtr client) { - /* REQUEST(xDbeGetVersionReq); */ + REQUEST_SIZE_MATCH(xDbeGetVersionReq); + xDbeGetVersionReply rep = { .majorVersion = DBE_MAJOR_VERSION, .minorVersion = DBE_MINOR_VERSION }; - REQUEST_SIZE_MATCH(xDbeGetVersionReq); + return X_SEND_REPLY_SIMPLE(client, rep); +} - X_SEND_REPLY_SIMPLE(client, rep); - return Success; - -} /* ProcDbeGetVersion() */ - /****************************************************************************** * * DBE DIX Procedure: ProcDbeAllocateBackBufferName @@ -712,10 +709,9 @@ ProcDbeGetBackBufferAttributes(ClientPtr client) swapl(&rep.attributes); } - X_SEND_REPLY_SIMPLE(client, rep); - return Success; -} /* ProcDbeGetbackBufferAttributes() */ - + return X_SEND_REPLY_SIMPLE(client, rep); +} + /****************************************************************************** * * DBE DIX Procedure: ProcDbeDispatch