dix: drop swapping 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.

Also dropping now obsolete SProcNoOperation().

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-06 15:26:50 +02:00 committed by Marge Bot
parent 643f91266e
commit 4c3ff75772
3 changed files with 1 additions and 83 deletions

View File

@ -118,7 +118,6 @@ int _X_COLD
SProcSimpleReq(ClientPtr client) SProcSimpleReq(ClientPtr client)
{ {
REQUEST(xReq); REQUEST(xReq);
swaps(&stuff->length);
return (*ProcVector[stuff->reqType]) (client); return (*ProcVector[stuff->reqType]) (client);
} }
@ -129,7 +128,6 @@ int _X_COLD
SProcResourceReq(ClientPtr client) SProcResourceReq(ClientPtr client)
{ {
REQUEST(xResourceReq); REQUEST(xResourceReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xResourceReq); /* not EXACT */ REQUEST_AT_LEAST_SIZE(xResourceReq); /* not EXACT */
swapl(&stuff->id); swapl(&stuff->id);
return (*ProcVector[stuff->reqType]) (client); return (*ProcVector[stuff->reqType]) (client);
@ -139,7 +137,6 @@ int _X_COLD
SProcCreateWindow(ClientPtr client) SProcCreateWindow(ClientPtr client)
{ {
REQUEST(xCreateWindowReq); REQUEST(xCreateWindowReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xCreateWindowReq); REQUEST_AT_LEAST_SIZE(xCreateWindowReq);
swapl(&stuff->wid); swapl(&stuff->wid);
swapl(&stuff->parent); swapl(&stuff->parent);
@ -159,7 +156,6 @@ int _X_COLD
SProcChangeWindowAttributes(ClientPtr client) SProcChangeWindowAttributes(ClientPtr client)
{ {
REQUEST(xChangeWindowAttributesReq); REQUEST(xChangeWindowAttributesReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeWindowAttributesReq); REQUEST_AT_LEAST_SIZE(xChangeWindowAttributesReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->valueMask); swapl(&stuff->valueMask);
@ -171,7 +167,6 @@ int _X_COLD
SProcReparentWindow(ClientPtr client) SProcReparentWindow(ClientPtr client)
{ {
REQUEST(xReparentWindowReq); REQUEST(xReparentWindowReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xReparentWindowReq); REQUEST_SIZE_MATCH(xReparentWindowReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->parent); swapl(&stuff->parent);
@ -184,7 +179,6 @@ int _X_COLD
SProcConfigureWindow(ClientPtr client) SProcConfigureWindow(ClientPtr client)
{ {
REQUEST(xConfigureWindowReq); REQUEST(xConfigureWindowReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xConfigureWindowReq); REQUEST_AT_LEAST_SIZE(xConfigureWindowReq);
swapl(&stuff->window); swapl(&stuff->window);
swaps(&stuff->mask); swaps(&stuff->mask);
@ -197,7 +191,6 @@ int _X_COLD
SProcInternAtom(ClientPtr client) SProcInternAtom(ClientPtr client)
{ {
REQUEST(xInternAtomReq); REQUEST(xInternAtomReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xInternAtomReq); REQUEST_AT_LEAST_SIZE(xInternAtomReq);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
return ((*ProcVector[X_InternAtom]) (client)); return ((*ProcVector[X_InternAtom]) (client));
@ -207,7 +200,6 @@ int _X_COLD
SProcChangeProperty(ClientPtr client) SProcChangeProperty(ClientPtr client)
{ {
REQUEST(xChangePropertyReq); REQUEST(xChangePropertyReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangePropertyReq); REQUEST_AT_LEAST_SIZE(xChangePropertyReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->property); swapl(&stuff->property);
@ -230,19 +222,16 @@ int _X_COLD
SProcDeleteProperty(ClientPtr client) SProcDeleteProperty(ClientPtr client)
{ {
REQUEST(xDeletePropertyReq); REQUEST(xDeletePropertyReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xDeletePropertyReq); REQUEST_SIZE_MATCH(xDeletePropertyReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->property); swapl(&stuff->property);
return ((*ProcVector[X_DeleteProperty]) (client)); return ((*ProcVector[X_DeleteProperty]) (client));
} }
int _X_COLD int _X_COLD
SProcGetProperty(ClientPtr client) SProcGetProperty(ClientPtr client)
{ {
REQUEST(xGetPropertyReq); REQUEST(xGetPropertyReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGetPropertyReq); REQUEST_SIZE_MATCH(xGetPropertyReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->property); swapl(&stuff->property);
@ -256,7 +245,6 @@ int _X_COLD
SProcSetSelectionOwner(ClientPtr client) SProcSetSelectionOwner(ClientPtr client)
{ {
REQUEST(xSetSelectionOwnerReq); REQUEST(xSetSelectionOwnerReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSetSelectionOwnerReq); REQUEST_SIZE_MATCH(xSetSelectionOwnerReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->selection); swapl(&stuff->selection);
@ -268,7 +256,6 @@ int _X_COLD
SProcConvertSelection(ClientPtr client) SProcConvertSelection(ClientPtr client)
{ {
REQUEST(xConvertSelectionReq); REQUEST(xConvertSelectionReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xConvertSelectionReq); REQUEST_SIZE_MATCH(xConvertSelectionReq);
swapl(&stuff->requestor); swapl(&stuff->requestor);
swapl(&stuff->selection); swapl(&stuff->selection);
@ -285,7 +272,6 @@ SProcSendEvent(ClientPtr client)
EventSwapPtr proc; EventSwapPtr proc;
REQUEST(xSendEventReq); REQUEST(xSendEventReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSendEventReq); REQUEST_SIZE_MATCH(xSendEventReq);
swapl(&stuff->destination); swapl(&stuff->destination);
swapl(&stuff->eventMask); swapl(&stuff->eventMask);
@ -311,7 +297,6 @@ int _X_COLD
SProcGrabPointer(ClientPtr client) SProcGrabPointer(ClientPtr client)
{ {
REQUEST(xGrabPointerReq); REQUEST(xGrabPointerReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGrabPointerReq); REQUEST_SIZE_MATCH(xGrabPointerReq);
swapl(&stuff->grabWindow); swapl(&stuff->grabWindow);
swaps(&stuff->eventMask); swaps(&stuff->eventMask);
@ -325,7 +310,6 @@ int _X_COLD
SProcGrabButton(ClientPtr client) SProcGrabButton(ClientPtr client)
{ {
REQUEST(xGrabButtonReq); REQUEST(xGrabButtonReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGrabButtonReq); REQUEST_SIZE_MATCH(xGrabButtonReq);
swapl(&stuff->grabWindow); swapl(&stuff->grabWindow);
swaps(&stuff->eventMask); swaps(&stuff->eventMask);
@ -339,7 +323,6 @@ int _X_COLD
SProcUngrabButton(ClientPtr client) SProcUngrabButton(ClientPtr client)
{ {
REQUEST(xUngrabButtonReq); REQUEST(xUngrabButtonReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xUngrabButtonReq); REQUEST_SIZE_MATCH(xUngrabButtonReq);
swapl(&stuff->grabWindow); swapl(&stuff->grabWindow);
swaps(&stuff->modifiers); swaps(&stuff->modifiers);
@ -350,7 +333,6 @@ int _X_COLD
SProcChangeActivePointerGrab(ClientPtr client) SProcChangeActivePointerGrab(ClientPtr client)
{ {
REQUEST(xChangeActivePointerGrabReq); REQUEST(xChangeActivePointerGrabReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xChangeActivePointerGrabReq); REQUEST_SIZE_MATCH(xChangeActivePointerGrabReq);
swapl(&stuff->cursor); swapl(&stuff->cursor);
swapl(&stuff->time); swapl(&stuff->time);
@ -362,7 +344,6 @@ int _X_COLD
SProcGrabKeyboard(ClientPtr client) SProcGrabKeyboard(ClientPtr client)
{ {
REQUEST(xGrabKeyboardReq); REQUEST(xGrabKeyboardReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGrabKeyboardReq); REQUEST_SIZE_MATCH(xGrabKeyboardReq);
swapl(&stuff->grabWindow); swapl(&stuff->grabWindow);
swapl(&stuff->time); swapl(&stuff->time);
@ -373,7 +354,6 @@ int _X_COLD
SProcGrabKey(ClientPtr client) SProcGrabKey(ClientPtr client)
{ {
REQUEST(xGrabKeyReq); REQUEST(xGrabKeyReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGrabKeyReq); REQUEST_SIZE_MATCH(xGrabKeyReq);
swapl(&stuff->grabWindow); swapl(&stuff->grabWindow);
swaps(&stuff->modifiers); swaps(&stuff->modifiers);
@ -384,7 +364,6 @@ int _X_COLD
SProcUngrabKey(ClientPtr client) SProcUngrabKey(ClientPtr client)
{ {
REQUEST(xUngrabKeyReq); REQUEST(xUngrabKeyReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xUngrabKeyReq); REQUEST_SIZE_MATCH(xUngrabKeyReq);
swapl(&stuff->grabWindow); swapl(&stuff->grabWindow);
swaps(&stuff->modifiers); swaps(&stuff->modifiers);
@ -395,7 +374,6 @@ int _X_COLD
SProcGetMotionEvents(ClientPtr client) SProcGetMotionEvents(ClientPtr client)
{ {
REQUEST(xGetMotionEventsReq); REQUEST(xGetMotionEventsReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGetMotionEventsReq); REQUEST_SIZE_MATCH(xGetMotionEventsReq);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->start); swapl(&stuff->start);
@ -407,7 +385,6 @@ int _X_COLD
SProcTranslateCoords(ClientPtr client) SProcTranslateCoords(ClientPtr client)
{ {
REQUEST(xTranslateCoordsReq); REQUEST(xTranslateCoordsReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xTranslateCoordsReq); REQUEST_SIZE_MATCH(xTranslateCoordsReq);
swapl(&stuff->srcWid); swapl(&stuff->srcWid);
swapl(&stuff->dstWid); swapl(&stuff->dstWid);
@ -420,7 +397,6 @@ int _X_COLD
SProcWarpPointer(ClientPtr client) SProcWarpPointer(ClientPtr client)
{ {
REQUEST(xWarpPointerReq); REQUEST(xWarpPointerReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xWarpPointerReq); REQUEST_SIZE_MATCH(xWarpPointerReq);
swapl(&stuff->srcWid); swapl(&stuff->srcWid);
swapl(&stuff->dstWid); swapl(&stuff->dstWid);
@ -437,7 +413,6 @@ int _X_COLD
SProcSetInputFocus(ClientPtr client) SProcSetInputFocus(ClientPtr client)
{ {
REQUEST(xSetInputFocusReq); REQUEST(xSetInputFocusReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSetInputFocusReq); REQUEST_SIZE_MATCH(xSetInputFocusReq);
swapl(&stuff->focus); swapl(&stuff->focus);
swapl(&stuff->time); swapl(&stuff->time);
@ -448,7 +423,6 @@ int _X_COLD
SProcOpenFont(ClientPtr client) SProcOpenFont(ClientPtr client)
{ {
REQUEST(xOpenFontReq); REQUEST(xOpenFontReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xOpenFontReq); REQUEST_AT_LEAST_SIZE(xOpenFontReq);
swapl(&stuff->fid); swapl(&stuff->fid);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
@ -459,7 +433,6 @@ int _X_COLD
SProcListFonts(ClientPtr client) SProcListFonts(ClientPtr client)
{ {
REQUEST(xListFontsReq); REQUEST(xListFontsReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xListFontsReq); REQUEST_AT_LEAST_SIZE(xListFontsReq);
swaps(&stuff->maxNames); swaps(&stuff->maxNames);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
@ -470,7 +443,6 @@ int _X_COLD
SProcListFontsWithInfo(ClientPtr client) SProcListFontsWithInfo(ClientPtr client)
{ {
REQUEST(xListFontsWithInfoReq); REQUEST(xListFontsWithInfoReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xListFontsWithInfoReq); REQUEST_AT_LEAST_SIZE(xListFontsWithInfoReq);
swaps(&stuff->maxNames); swaps(&stuff->maxNames);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
@ -481,7 +453,6 @@ int _X_COLD
SProcSetFontPath(ClientPtr client) SProcSetFontPath(ClientPtr client)
{ {
REQUEST(xSetFontPathReq); REQUEST(xSetFontPathReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xSetFontPathReq); REQUEST_AT_LEAST_SIZE(xSetFontPathReq);
swaps(&stuff->nFonts); swaps(&stuff->nFonts);
return ((*ProcVector[X_SetFontPath]) (client)); return ((*ProcVector[X_SetFontPath]) (client));
@ -491,8 +462,6 @@ int _X_COLD
SProcCreatePixmap(ClientPtr client) SProcCreatePixmap(ClientPtr client)
{ {
REQUEST(xCreatePixmapReq); REQUEST(xCreatePixmapReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCreatePixmapReq); REQUEST_SIZE_MATCH(xCreatePixmapReq);
swapl(&stuff->pid); swapl(&stuff->pid);
swapl(&stuff->drawable); swapl(&stuff->drawable);
@ -505,7 +474,6 @@ int _X_COLD
SProcCreateGC(ClientPtr client) SProcCreateGC(ClientPtr client)
{ {
REQUEST(xCreateGCReq); REQUEST(xCreateGCReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xCreateGCReq); REQUEST_AT_LEAST_SIZE(xCreateGCReq);
swapl(&stuff->gc); swapl(&stuff->gc);
swapl(&stuff->drawable); swapl(&stuff->drawable);
@ -518,7 +486,6 @@ int _X_COLD
SProcChangeGC(ClientPtr client) SProcChangeGC(ClientPtr client)
{ {
REQUEST(xChangeGCReq); REQUEST(xChangeGCReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeGCReq); REQUEST_AT_LEAST_SIZE(xChangeGCReq);
swapl(&stuff->gc); swapl(&stuff->gc);
swapl(&stuff->mask); swapl(&stuff->mask);
@ -530,7 +497,6 @@ int _X_COLD
SProcCopyGC(ClientPtr client) SProcCopyGC(ClientPtr client)
{ {
REQUEST(xCopyGCReq); REQUEST(xCopyGCReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCopyGCReq); REQUEST_SIZE_MATCH(xCopyGCReq);
swapl(&stuff->srcGC); swapl(&stuff->srcGC);
swapl(&stuff->dstGC); swapl(&stuff->dstGC);
@ -542,20 +508,17 @@ int _X_COLD
SProcSetDashes(ClientPtr client) SProcSetDashes(ClientPtr client)
{ {
REQUEST(xSetDashesReq); REQUEST(xSetDashesReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xSetDashesReq); REQUEST_AT_LEAST_SIZE(xSetDashesReq);
swapl(&stuff->gc); swapl(&stuff->gc);
swaps(&stuff->dashOffset); swaps(&stuff->dashOffset);
swaps(&stuff->nDashes); swaps(&stuff->nDashes);
return ((*ProcVector[X_SetDashes]) (client)); return ((*ProcVector[X_SetDashes]) (client));
} }
int _X_COLD int _X_COLD
SProcSetClipRectangles(ClientPtr client) SProcSetClipRectangles(ClientPtr client)
{ {
REQUEST(xSetClipRectanglesReq); REQUEST(xSetClipRectanglesReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xSetClipRectanglesReq); REQUEST_AT_LEAST_SIZE(xSetClipRectanglesReq);
swapl(&stuff->gc); swapl(&stuff->gc);
swaps(&stuff->xOrigin); swaps(&stuff->xOrigin);
@ -568,7 +531,6 @@ int _X_COLD
SProcClearToBackground(ClientPtr client) SProcClearToBackground(ClientPtr client)
{ {
REQUEST(xClearAreaReq); REQUEST(xClearAreaReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xClearAreaReq); REQUEST_SIZE_MATCH(xClearAreaReq);
swapl(&stuff->window); swapl(&stuff->window);
swaps(&stuff->x); swaps(&stuff->x);
@ -582,7 +544,6 @@ int _X_COLD
SProcCopyArea(ClientPtr client) SProcCopyArea(ClientPtr client)
{ {
REQUEST(xCopyAreaReq); REQUEST(xCopyAreaReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCopyAreaReq); REQUEST_SIZE_MATCH(xCopyAreaReq);
swapl(&stuff->srcDrawable); swapl(&stuff->srcDrawable);
swapl(&stuff->dstDrawable); swapl(&stuff->dstDrawable);
@ -600,7 +561,6 @@ int _X_COLD
SProcCopyPlane(ClientPtr client) SProcCopyPlane(ClientPtr client)
{ {
REQUEST(xCopyPlaneReq); REQUEST(xCopyPlaneReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCopyPlaneReq); REQUEST_SIZE_MATCH(xCopyPlaneReq);
swapl(&stuff->srcDrawable); swapl(&stuff->srcDrawable);
swapl(&stuff->dstDrawable); swapl(&stuff->dstDrawable);
@ -621,7 +581,6 @@ int _X_COLD
SProcPoly(ClientPtr client) SProcPoly(ClientPtr client)
{ {
REQUEST(xPolyPointReq); REQUEST(xPolyPointReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xPolyPointReq); REQUEST_AT_LEAST_SIZE(xPolyPointReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swapl(&stuff->gc); swapl(&stuff->gc);
@ -636,7 +595,6 @@ int _X_COLD
SProcFillPoly(ClientPtr client) SProcFillPoly(ClientPtr client)
{ {
REQUEST(xFillPolyReq); REQUEST(xFillPolyReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xFillPolyReq); REQUEST_AT_LEAST_SIZE(xFillPolyReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swapl(&stuff->gc); swapl(&stuff->gc);
@ -648,7 +606,6 @@ int _X_COLD
SProcPutImage(ClientPtr client) SProcPutImage(ClientPtr client)
{ {
REQUEST(xPutImageReq); REQUEST(xPutImageReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xPutImageReq); REQUEST_AT_LEAST_SIZE(xPutImageReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swapl(&stuff->gc); swapl(&stuff->gc);
@ -658,14 +615,12 @@ SProcPutImage(ClientPtr client)
swaps(&stuff->dstY); swaps(&stuff->dstY);
/* Image should already be swapped */ /* Image should already be swapped */
return ((*ProcVector[X_PutImage]) (client)); return ((*ProcVector[X_PutImage]) (client));
} }
int _X_COLD int _X_COLD
SProcGetImage(ClientPtr client) SProcGetImage(ClientPtr client)
{ {
REQUEST(xGetImageReq); REQUEST(xGetImageReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xGetImageReq); REQUEST_SIZE_MATCH(xGetImageReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swaps(&stuff->x); swaps(&stuff->x);
@ -682,7 +637,6 @@ int _X_COLD
SProcPolyText(ClientPtr client) SProcPolyText(ClientPtr client)
{ {
REQUEST(xPolyTextReq); REQUEST(xPolyTextReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xPolyTextReq); REQUEST_AT_LEAST_SIZE(xPolyTextReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swapl(&stuff->gc); swapl(&stuff->gc);
@ -697,7 +651,6 @@ int _X_COLD
SProcImageText(ClientPtr client) SProcImageText(ClientPtr client)
{ {
REQUEST(xImageTextReq); REQUEST(xImageTextReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xImageTextReq); REQUEST_AT_LEAST_SIZE(xImageTextReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swapl(&stuff->gc); swapl(&stuff->gc);
@ -710,7 +663,6 @@ int _X_COLD
SProcCreateColormap(ClientPtr client) SProcCreateColormap(ClientPtr client)
{ {
REQUEST(xCreateColormapReq); REQUEST(xCreateColormapReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCreateColormapReq); REQUEST_SIZE_MATCH(xCreateColormapReq);
swapl(&stuff->mid); swapl(&stuff->mid);
swapl(&stuff->window); swapl(&stuff->window);
@ -722,19 +674,16 @@ int _X_COLD
SProcCopyColormapAndFree(ClientPtr client) SProcCopyColormapAndFree(ClientPtr client)
{ {
REQUEST(xCopyColormapAndFreeReq); REQUEST(xCopyColormapAndFreeReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCopyColormapAndFreeReq); REQUEST_SIZE_MATCH(xCopyColormapAndFreeReq);
swapl(&stuff->mid); swapl(&stuff->mid);
swapl(&stuff->srcCmap); swapl(&stuff->srcCmap);
return ((*ProcVector[X_CopyColormapAndFree]) (client)); return ((*ProcVector[X_CopyColormapAndFree]) (client));
} }
int _X_COLD int _X_COLD
SProcAllocColor(ClientPtr client) SProcAllocColor(ClientPtr client)
{ {
REQUEST(xAllocColorReq); REQUEST(xAllocColorReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xAllocColorReq); REQUEST_SIZE_MATCH(xAllocColorReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swaps(&stuff->red); swaps(&stuff->red);
@ -747,7 +696,6 @@ int _X_COLD
SProcAllocNamedColor(ClientPtr client) SProcAllocNamedColor(ClientPtr client)
{ {
REQUEST(xAllocNamedColorReq); REQUEST(xAllocNamedColorReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xAllocNamedColorReq); REQUEST_AT_LEAST_SIZE(xAllocNamedColorReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
@ -758,7 +706,6 @@ int _X_COLD
SProcAllocColorCells(ClientPtr client) SProcAllocColorCells(ClientPtr client)
{ {
REQUEST(xAllocColorCellsReq); REQUEST(xAllocColorCellsReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xAllocColorCellsReq); REQUEST_SIZE_MATCH(xAllocColorCellsReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swaps(&stuff->colors); swaps(&stuff->colors);
@ -770,7 +717,6 @@ int _X_COLD
SProcAllocColorPlanes(ClientPtr client) SProcAllocColorPlanes(ClientPtr client)
{ {
REQUEST(xAllocColorPlanesReq); REQUEST(xAllocColorPlanesReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xAllocColorPlanesReq); REQUEST_SIZE_MATCH(xAllocColorPlanesReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swaps(&stuff->colors); swaps(&stuff->colors);
@ -784,13 +730,11 @@ int _X_COLD
SProcFreeColors(ClientPtr client) SProcFreeColors(ClientPtr client)
{ {
REQUEST(xFreeColorsReq); REQUEST(xFreeColorsReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xFreeColorsReq); REQUEST_AT_LEAST_SIZE(xFreeColorsReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swapl(&stuff->planeMask); swapl(&stuff->planeMask);
SwapRestL(stuff); SwapRestL(stuff);
return ((*ProcVector[X_FreeColors]) (client)); return ((*ProcVector[X_FreeColors]) (client));
} }
void _X_COLD void _X_COLD
@ -809,7 +753,6 @@ SProcStoreColors(ClientPtr client)
xColorItem *pItem; xColorItem *pItem;
REQUEST(xStoreColorsReq); REQUEST(xStoreColorsReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xStoreColorsReq); REQUEST_AT_LEAST_SIZE(xStoreColorsReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
pItem = (xColorItem *) &stuff[1]; pItem = (xColorItem *) &stuff[1];
@ -822,7 +765,6 @@ int _X_COLD
SProcStoreNamedColor(ClientPtr client) SProcStoreNamedColor(ClientPtr client)
{ {
REQUEST(xStoreNamedColorReq); REQUEST(xStoreNamedColorReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xStoreNamedColorReq); REQUEST_AT_LEAST_SIZE(xStoreNamedColorReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swapl(&stuff->pixel); swapl(&stuff->pixel);
@ -834,7 +776,6 @@ int _X_COLD
SProcQueryColors(ClientPtr client) SProcQueryColors(ClientPtr client)
{ {
REQUEST(xQueryColorsReq); REQUEST(xQueryColorsReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xQueryColorsReq); REQUEST_AT_LEAST_SIZE(xQueryColorsReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
SwapRestL(stuff); SwapRestL(stuff);
@ -845,7 +786,6 @@ int _X_COLD
SProcLookupColor(ClientPtr client) SProcLookupColor(ClientPtr client)
{ {
REQUEST(xLookupColorReq); REQUEST(xLookupColorReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xLookupColorReq); REQUEST_AT_LEAST_SIZE(xLookupColorReq);
swapl(&stuff->cmap); swapl(&stuff->cmap);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
@ -856,7 +796,6 @@ int _X_COLD
SProcCreateCursor(ClientPtr client) SProcCreateCursor(ClientPtr client)
{ {
REQUEST(xCreateCursorReq); REQUEST(xCreateCursorReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCreateCursorReq); REQUEST_SIZE_MATCH(xCreateCursorReq);
swapl(&stuff->cid); swapl(&stuff->cid);
swapl(&stuff->source); swapl(&stuff->source);
@ -876,7 +815,6 @@ int _X_COLD
SProcCreateGlyphCursor(ClientPtr client) SProcCreateGlyphCursor(ClientPtr client)
{ {
REQUEST(xCreateGlyphCursorReq); REQUEST(xCreateGlyphCursorReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xCreateGlyphCursorReq); REQUEST_SIZE_MATCH(xCreateGlyphCursorReq);
swapl(&stuff->cid); swapl(&stuff->cid);
swapl(&stuff->source); swapl(&stuff->source);
@ -896,7 +834,6 @@ int _X_COLD
SProcRecolorCursor(ClientPtr client) SProcRecolorCursor(ClientPtr client)
{ {
REQUEST(xRecolorCursorReq); REQUEST(xRecolorCursorReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xRecolorCursorReq); REQUEST_SIZE_MATCH(xRecolorCursorReq);
swapl(&stuff->cursor); swapl(&stuff->cursor);
swaps(&stuff->foreRed); swaps(&stuff->foreRed);
@ -912,20 +849,17 @@ int _X_COLD
SProcQueryBestSize(ClientPtr client) SProcQueryBestSize(ClientPtr client)
{ {
REQUEST(xQueryBestSizeReq); REQUEST(xQueryBestSizeReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xQueryBestSizeReq); REQUEST_SIZE_MATCH(xQueryBestSizeReq);
swapl(&stuff->drawable); swapl(&stuff->drawable);
swaps(&stuff->width); swaps(&stuff->width);
swaps(&stuff->height); swaps(&stuff->height);
return ((*ProcVector[X_QueryBestSize]) (client)); return ((*ProcVector[X_QueryBestSize]) (client));
} }
int _X_COLD int _X_COLD
SProcQueryExtension(ClientPtr client) SProcQueryExtension(ClientPtr client)
{ {
REQUEST(xQueryExtensionReq); REQUEST(xQueryExtensionReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xQueryExtensionReq); REQUEST_AT_LEAST_SIZE(xQueryExtensionReq);
swaps(&stuff->nbytes); swaps(&stuff->nbytes);
return ((*ProcVector[X_QueryExtension]) (client)); return ((*ProcVector[X_QueryExtension]) (client));
@ -935,7 +869,6 @@ int _X_COLD
SProcChangeKeyboardMapping(ClientPtr client) SProcChangeKeyboardMapping(ClientPtr client)
{ {
REQUEST(xChangeKeyboardMappingReq); REQUEST(xChangeKeyboardMappingReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeKeyboardMappingReq); REQUEST_AT_LEAST_SIZE(xChangeKeyboardMappingReq);
SwapRestL(stuff); SwapRestL(stuff);
return ((*ProcVector[X_ChangeKeyboardMapping]) (client)); return ((*ProcVector[X_ChangeKeyboardMapping]) (client));
@ -945,7 +878,6 @@ int _X_COLD
SProcChangeKeyboardControl(ClientPtr client) SProcChangeKeyboardControl(ClientPtr client)
{ {
REQUEST(xChangeKeyboardControlReq); REQUEST(xChangeKeyboardControlReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeKeyboardControlReq); REQUEST_AT_LEAST_SIZE(xChangeKeyboardControlReq);
swapl(&stuff->mask); swapl(&stuff->mask);
SwapRestL(stuff); SwapRestL(stuff);
@ -956,7 +888,6 @@ int _X_COLD
SProcChangePointerControl(ClientPtr client) SProcChangePointerControl(ClientPtr client)
{ {
REQUEST(xChangePointerControlReq); REQUEST(xChangePointerControlReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xChangePointerControlReq); REQUEST_SIZE_MATCH(xChangePointerControlReq);
swaps(&stuff->accelNum); swaps(&stuff->accelNum);
swaps(&stuff->accelDenum); swaps(&stuff->accelDenum);
@ -968,7 +899,6 @@ int _X_COLD
SProcSetScreenSaver(ClientPtr client) SProcSetScreenSaver(ClientPtr client)
{ {
REQUEST(xSetScreenSaverReq); REQUEST(xSetScreenSaverReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSetScreenSaverReq); REQUEST_SIZE_MATCH(xSetScreenSaverReq);
swaps(&stuff->timeout); swaps(&stuff->timeout);
swaps(&stuff->interval); swaps(&stuff->interval);
@ -979,18 +909,15 @@ int _X_COLD
SProcChangeHosts(ClientPtr client) SProcChangeHosts(ClientPtr client)
{ {
REQUEST(xChangeHostsReq); REQUEST(xChangeHostsReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeHostsReq); REQUEST_AT_LEAST_SIZE(xChangeHostsReq);
swaps(&stuff->hostLength); swaps(&stuff->hostLength);
return ((*ProcVector[X_ChangeHosts]) (client)); return ((*ProcVector[X_ChangeHosts]) (client));
} }
int _X_COLD int _X_COLD
SProcRotateProperties(ClientPtr client) SProcRotateProperties(ClientPtr client)
{ {
REQUEST(xRotatePropertiesReq); REQUEST(xRotatePropertiesReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xRotatePropertiesReq); REQUEST_AT_LEAST_SIZE(xRotatePropertiesReq);
swapl(&stuff->window); swapl(&stuff->window);
swaps(&stuff->nAtoms); swaps(&stuff->nAtoms);
@ -999,14 +926,6 @@ SProcRotateProperties(ClientPtr client)
return ((*ProcVector[X_RotateProperties]) (client)); return ((*ProcVector[X_RotateProperties]) (client));
} }
int _X_COLD
SProcNoOperation(ClientPtr client)
{
REQUEST(xReq);
swaps(&stuff->length);
return ((*ProcVector[X_NoOperation]) (client));
}
void _X_COLD void _X_COLD
SwapConnClientPrefix(xConnClientPrefix * pCCP) SwapConnClientPrefix(xConnClientPrefix * pCCP)
{ {

View File

@ -449,7 +449,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
ProcBadRequest, ProcBadRequest,
ProcBadRequest, /* 125 */ ProcBadRequest, /* 125 */
ProcBadRequest, ProcBadRequest,
SProcNoOperation, ProcNoOperation,
ProcBadRequest, ProcBadRequest,
ProcBadRequest, ProcBadRequest,
ProcBadRequest, ProcBadRequest,

View File

@ -70,7 +70,6 @@ int SProcInternAtom(ClientPtr client);
int SProcListFonts(ClientPtr client); int SProcListFonts(ClientPtr client);
int SProcListFontsWithInfo(ClientPtr client); int SProcListFontsWithInfo(ClientPtr client);
int SProcLookupColor(ClientPtr client); int SProcLookupColor(ClientPtr client);
int SProcNoOperation(ClientPtr client);
int SProcOpenFont(ClientPtr client); int SProcOpenFont(ClientPtr client);
int SProcPoly(ClientPtr client); int SProcPoly(ClientPtr client);
int SProcPolyText(ClientPtr client); int SProcPolyText(ClientPtr client);