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:
Jamey Sharp 2010-05-10 20:22:05 -07:00
commit 92ed75ac59
52 changed files with 475 additions and 621 deletions

View file

@ -50,7 +50,7 @@ ProcXResQueryVersion (ClientPtr client)
swaps(&rep.server_minor, n);
}
WriteToClient(client, sizeof (xXResQueryVersionReply), (char *)&rep);
return (client->noClientException);
return Success;
}
static int
@ -103,7 +103,7 @@ ProcXResQueryClients (ClientPtr client)
free(current_clients);
return (client->noClientException);
return Success;
}
@ -184,7 +184,7 @@ ProcXResQueryClientResources (ClientPtr client)
free(counts);
return (client->noClientException);
return Success;
}
static unsigned long
@ -295,7 +295,7 @@ ProcXResQueryClientPixmapBytes (ClientPtr client)
}
WriteToClient (client,sizeof(xXResQueryClientPixmapBytesReply),(char*)&rep);
return (client->noClientException);
return Success;
}
static int