From 2e6a9a1fbcf21a13eb4544b42eb5196832523db1 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 3 Jul 2024 15:59:46 +0200 Subject: [PATCH] Xext: bigreq: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/bigreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Xext/bigreq.c b/Xext/bigreq.c index 2e3247b961..7a73b45473 100644 --- a/Xext/bigreq.c +++ b/Xext/bigreq.c @@ -45,8 +45,7 @@ from The Open Group. static int ProcBigReqDispatch(ClientPtr client) { - REQUEST(xBigReqEnableReq); - REQUEST_SIZE_MATCH(xBigReqEnableReq); + X_REQUEST_HEAD_STRUCT(xBigReqEnableReq); if (stuff->brReqType != X_BigReqEnable) return BadRequest;