mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
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:
parent
11c69880c7
commit
92ed75ac59
52 changed files with 475 additions and 621 deletions
|
|
@ -269,7 +269,7 @@ ProcShapeQueryVersion (ClientPtr client)
|
|||
swaps(&rep.minorVersion, n);
|
||||
}
|
||||
WriteToClient(client, sizeof (xShapeQueryVersionReply), (char *)&rep);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*****************
|
||||
|
|
@ -736,7 +736,7 @@ ProcShapeQueryExtents (ClientPtr client)
|
|||
swaps(&rep.heightClipShape, n);
|
||||
}
|
||||
WriteToClient(client, sizeof (xShapeQueryExtentsReply), (char *)&rep);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
|
|
@ -996,7 +996,7 @@ ProcShapeInputSelected (ClientPtr client)
|
|||
swapl (&rep.length, n);
|
||||
}
|
||||
WriteToClient (client, sizeof (xShapeInputSelectedReply), (char *) &rep);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -1081,7 +1081,7 @@ ProcShapeGetRectangles (ClientPtr client)
|
|||
WriteToClient (client, sizeof (rep), (char *) &rep);
|
||||
WriteToClient (client, nrects * sizeof (xRectangle), (char *) rects);
|
||||
free(rects);
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue