"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "record/record.c" between
xorg-server-1.20.8.tar.bz2 and xorg-server-1.20.9.tar.bz2

About: The X.Org X Server component of the X Window System architecture.

record.c  (xorg-server-1.20.8.tar.bz2):record.c  (xorg-server-1.20.9.tar.bz2)
skipping to change at line 2498 skipping to change at line 2498
REQUEST(xRecordQueryVersionReq); REQUEST(xRecordQueryVersionReq);
swaps(&stuff->length); swaps(&stuff->length);
REQUEST_SIZE_MATCH(xRecordQueryVersionReq); REQUEST_SIZE_MATCH(xRecordQueryVersionReq);
swaps(&stuff->majorVersion); swaps(&stuff->majorVersion);
swaps(&stuff->minorVersion); swaps(&stuff->minorVersion);
return ProcRecordQueryVersion(client); return ProcRecordQueryVersion(client);
} /* SProcRecordQueryVersion */ } /* SProcRecordQueryVersion */
static int _X_COLD static int _X_COLD
SwapCreateRegister(xRecordRegisterClientsReq * stuff) SwapCreateRegister(ClientPtr client, xRecordRegisterClientsReq * stuff)
{ {
int i; int i;
XID *pClientID; XID *pClientID;
swapl(&stuff->context); swapl(&stuff->context);
swapl(&stuff->nClients); swapl(&stuff->nClients);
swapl(&stuff->nRanges); swapl(&stuff->nRanges);
pClientID = (XID *) &stuff[1]; pClientID = (XID *) &stuff[1];
if (stuff->nClients > if (stuff->nClients >
stuff->length - bytes_to_int32(sz_xRecordRegisterClientsReq)) client->req_len - bytes_to_int32(sz_xRecordRegisterClientsReq))
return BadLength; return BadLength;
for (i = 0; i < stuff->nClients; i++, pClientID++) { for (i = 0; i < stuff->nClients; i++, pClientID++) {
swapl(pClientID); swapl(pClientID);
} }
if (stuff->nRanges > if (stuff->nRanges >
stuff->length - bytes_to_int32(sz_xRecordRegisterClientsReq) client->req_len - bytes_to_int32(sz_xRecordRegisterClientsReq)
- stuff->nClients) - stuff->nClients)
return BadLength; return BadLength;
RecordSwapRanges((xRecordRange *) pClientID, stuff->nRanges); RecordSwapRanges((xRecordRange *) pClientID, stuff->nRanges);
return Success; return Success;
} /* SwapCreateRegister */ } /* SwapCreateRegister */
static int _X_COLD static int _X_COLD
SProcRecordCreateContext(ClientPtr client) SProcRecordCreateContext(ClientPtr client)
{ {
REQUEST(xRecordCreateContextReq); REQUEST(xRecordCreateContextReq);
int status; int status;
swaps(&stuff->length); swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xRecordCreateContextReq); REQUEST_AT_LEAST_SIZE(xRecordCreateContextReq);
if ((status = SwapCreateRegister((void *) stuff)) != Success) if ((status = SwapCreateRegister(client, (void *) stuff)) != Success)
return status; return status;
return ProcRecordCreateContext(client); return ProcRecordCreateContext(client);
} /* SProcRecordCreateContext */ } /* SProcRecordCreateContext */
static int _X_COLD static int _X_COLD
SProcRecordRegisterClients(ClientPtr client) SProcRecordRegisterClients(ClientPtr client)
{ {
REQUEST(xRecordRegisterClientsReq); REQUEST(xRecordRegisterClientsReq);
int status; int status;
swaps(&stuff->length); swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xRecordRegisterClientsReq); REQUEST_AT_LEAST_SIZE(xRecordRegisterClientsReq);
if ((status = SwapCreateRegister((void *) stuff)) != Success) if ((status = SwapCreateRegister(client, (void *) stuff)) != Success)
return status; return status;
return ProcRecordRegisterClients(client); return ProcRecordRegisterClients(client);
} /* SProcRecordRegisterClients */ } /* SProcRecordRegisterClients */
static int _X_COLD static int _X_COLD
SProcRecordUnregisterClients(ClientPtr client) SProcRecordUnregisterClients(ClientPtr client)
{ {
REQUEST(xRecordUnregisterClientsReq); REQUEST(xRecordUnregisterClientsReq);
swaps(&stuff->length); swaps(&stuff->length);
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)