(submit/fixup-req-len) 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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-06 15:26:50 +02:00
parent cf058b5b1c
commit ae1865ab56
3 changed files with 1 additions and 83 deletions

View File

@ -120,7 +120,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);
} }
@ -131,7 +130,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);
@ -141,7 +139,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);
@ -161,7 +158,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);
@ -173,7 +169,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);
@ -186,7 +181,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);
@ -199,7 +193,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));
@ -209,7 +202,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);
@ -232,19 +224,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);
@ -258,7 +247,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);
@ -270,7 +258,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);
@ -287,7 +274,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);
@ -313,7 +299,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);
@ -327,7 +312,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);
@ -341,7 +325,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);
@ -352,7 +335,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);
@ -364,7 +346,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);
@ -375,7 +356,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);
@ -386,7 +366,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);
@ -397,7 +376,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);
@ -409,7 +387,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);
@ -422,7 +399,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);
@ -439,7 +415,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);
@ -450,7 +425,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);
@ -461,7 +435,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);
@ -472,7 +445,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);
@ -483,7 +455,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));
@ -493,8 +464,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);
@ -507,7 +476,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);
@ -520,7 +488,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);
@ -532,7 +499,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);
@ -544,20 +510,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);
@ -570,7 +533,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);
@ -584,7 +546,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);
@ -602,7 +563,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);
@ -623,7 +583,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);
@ -638,7 +597,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);
@ -650,7 +608,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);
@ -660,14 +617,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);
@ -684,7 +639,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);
@ -699,7 +653,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);
@ -712,7 +665,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);
@ -724,19 +676,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);
@ -749,7 +698,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);
@ -760,7 +708,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);
@ -772,7 +719,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);
@ -786,13 +732,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
@ -811,7 +755,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];
@ -824,7 +767,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);
@ -836,7 +778,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);
@ -847,7 +788,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);
@ -858,7 +798,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);
@ -878,7 +817,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);
@ -898,7 +836,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);
@ -914,20 +851,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));
@ -937,7 +871,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));
@ -947,7 +880,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);
@ -958,7 +890,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);
@ -970,7 +901,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);
@ -981,18 +911,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);
@ -1001,14 +928,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

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

View File

@ -74,7 +74,6 @@ SWAPREQ_PROC(SProcInternAtom);
SWAPREQ_PROC(SProcListFonts); SWAPREQ_PROC(SProcListFonts);
SWAPREQ_PROC(SProcListFontsWithInfo); SWAPREQ_PROC(SProcListFontsWithInfo);
SWAPREQ_PROC(SProcLookupColor); SWAPREQ_PROC(SProcLookupColor);
SWAPREQ_PROC(SProcNoOperation);
SWAPREQ_PROC(SProcOpenFont); SWAPREQ_PROC(SProcOpenFont);
SWAPREQ_PROC(SProcPoly); SWAPREQ_PROC(SProcPoly);
SWAPREQ_PROC(SProcPolyText); SWAPREQ_PROC(SProcPolyText);