mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue