summaryrefslogtreecommitdiff
path: root/Xext/panoramiXprocs.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-05-10 20:22:05 -0700
committerJamey Sharp <jamey@minilop.net>2010-05-13 17:14:07 -0700
commit92ed75ac59e2d3af149cddb962efd05fc8487750 (patch)
treec05f3b03627ebd67a921fcec5cef3655083bb345 /Xext/panoramiXprocs.c
parent11c69880c7c48ef9e755c4e09fadef7a629d7bc7 (diff)
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>
Diffstat (limited to 'Xext/panoramiXprocs.c')
-rw-r--r--Xext/panoramiXprocs.c30
1 files changed, 13 insertions, 17 deletions
diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c
index 47362df4d..a1816958f 100644
--- a/Xext/panoramiXprocs.c
+++ b/Xext/panoramiXprocs.c
@@ -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;
}