mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
record: stop using request length fields
The request struct's length fields aren't used anymore - we have the client->req_len field instead, which also is bigreq-compatible. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
e1bbe46cbf
commit
c3b768802a
@@ -518,7 +518,7 @@ RecordARequest(ClientPtr client)
|
||||
RecordIsMemberOfSet(pRCAP->pRequestMajorOpSet, majorop)) {
|
||||
if (majorop <= 127) { /* core request */
|
||||
|
||||
if (stuff->length == 0)
|
||||
if (client->req_len == 0)
|
||||
RecordABigRequest(pContext, client, stuff);
|
||||
else
|
||||
RecordAProtocolElement(pContext, client, XRecordFromClient,
|
||||
@@ -540,7 +540,7 @@ RecordARequest(ClientPtr client)
|
||||
majorop <= pMinorOpInfo->major.last &&
|
||||
RecordIsMemberOfSet(pMinorOpInfo->major.pMinOpSet,
|
||||
minorop)) {
|
||||
if (stuff->length == 0)
|
||||
if (client->req_len == 0)
|
||||
RecordABigRequest(pContext, client, stuff);
|
||||
else
|
||||
RecordAProtocolElement(pContext, client,
|
||||
|
||||
Reference in New Issue
Block a user