mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +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
|
|
@ -737,7 +737,7 @@ ProcScreenSaverQueryVersion (ClientPtr client)
|
|||
swapl(&rep.length, n);
|
||||
}
|
||||
WriteToClient(client, sizeof (xScreenSaverQueryVersionReply), (char *)&rep);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -813,7 +813,7 @@ ProcScreenSaverQueryInfo (ClientPtr client)
|
|||
swapl (&rep.eventMask, n);
|
||||
}
|
||||
WriteToClient(client, sizeof (xScreenSaverQueryInfoReply), (char *)&rep);
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -1415,7 +1415,7 @@ ProcScreenSaverSuspend (ClientPtr client)
|
|||
FreeScreenSaverTimer();
|
||||
}
|
||||
|
||||
return (client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
static DISPATCH_PROC((*NormalVector[])) = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue