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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-07-03 15:59:46 +02:00
committed by Enrico Weigelt
parent a53697e70e
commit 2e6a9a1fbc

View File

@@ -45,8 +45,7 @@ from The Open Group.
static int static int
ProcBigReqDispatch(ClientPtr client) ProcBigReqDispatch(ClientPtr client)
{ {
REQUEST(xBigReqEnableReq); X_REQUEST_HEAD_STRUCT(xBigReqEnableReq);
REQUEST_SIZE_MATCH(xBigReqEnableReq);
if (stuff->brReqType != X_BigReqEnable) if (stuff->brReqType != X_BigReqEnable)
return BadRequest; return BadRequest;