Eliminate boilerplate around client->noClientException.
Just let Dispatch() check for a noClientException, rather than making every single dispatch procedure take care of it. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -572,7 +572,7 @@ int PanoramiXGetGeometry(ClientPtr client)
|
||||
}
|
||||
|
||||
WriteReplyToClient(client, sizeof(xGetGeometryReply), &rep);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
int PanoramiXTranslateCoords(ClientPtr client)
|
||||
@@ -642,7 +642,7 @@ int PanoramiXTranslateCoords(ClientPtr client)
|
||||
}
|
||||
|
||||
WriteReplyToClient(client, sizeof(xTranslateCoordsReply), &rep);
|
||||
return(client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
int PanoramiXCreatePixmap(ClientPtr client)
|
||||
@@ -1081,8 +1081,6 @@ int PanoramiXCopyArea(ClientPtr client)
|
||||
}
|
||||
|
||||
free(data);
|
||||
|
||||
result = Success;
|
||||
} else {
|
||||
DrawablePtr pDst = NULL, pSrc = NULL;
|
||||
GCPtr pGC = NULL;
|
||||
@@ -1150,11 +1148,9 @@ int PanoramiXCopyArea(ClientPtr client)
|
||||
client, &totalReg, stuff->dstDrawable, X_CopyArea, 0);
|
||||
REGION_UNINIT(pScreen, &totalReg);
|
||||
}
|
||||
|
||||
result = client->noClientException;
|
||||
}
|
||||
|
||||
return (result);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1264,7 +1260,7 @@ int PanoramiXCopyPlane(ClientPtr client)
|
||||
REGION_UNINIT(pScreen, &totalReg);
|
||||
}
|
||||
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1324,7 +1320,7 @@ int PanoramiXPolyPoint(ClientPtr client)
|
||||
free(origPts);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1384,7 +1380,7 @@ int PanoramiXPolyLine(ClientPtr client)
|
||||
free(origPts);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1447,7 +1443,7 @@ int PanoramiXPolySegment(ClientPtr client)
|
||||
free(origSegs);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1509,7 +1505,7 @@ int PanoramiXPolyRectangle(ClientPtr client)
|
||||
free(origRecs);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1569,7 +1565,7 @@ int PanoramiXPolyArc(ClientPtr client)
|
||||
free(origArcs);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1630,7 +1626,7 @@ int PanoramiXFillPoly(ClientPtr client)
|
||||
free(locPts);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1691,7 +1687,7 @@ int PanoramiXPolyFillRectangle(ClientPtr client)
|
||||
free(origRects);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1752,7 +1748,7 @@ int PanoramiXPolyFillArc(ClientPtr client)
|
||||
free(origArcs);
|
||||
return (result);
|
||||
} else
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
@@ -1947,7 +1943,7 @@ int PanoramiXGetImage(ClientPtr client)
|
||||
}
|
||||
}
|
||||
free(pBuf);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user