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
|
|
@ -447,7 +447,7 @@ ProcRRListOutputProperties (ClientPtr client)
|
|||
WriteSwappedDataToClient(client, numProps * sizeof(Atom), pAtoms);
|
||||
free(pAtoms);
|
||||
}
|
||||
return(client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -493,7 +493,7 @@ ProcRRQueryOutputProperty (ClientPtr client)
|
|||
extra);
|
||||
free(extra);
|
||||
}
|
||||
return(client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -566,7 +566,7 @@ ProcRRChangeOutputProperty (ClientPtr client)
|
|||
if (err != Success)
|
||||
return err;
|
||||
else
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -587,7 +587,7 @@ ProcRRDeleteOutputProperty (ClientPtr client)
|
|||
|
||||
|
||||
RRDeleteOutputProperty(output, stuff->property);
|
||||
return client->noClientException;
|
||||
return Success;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -646,7 +646,7 @@ ProcRRGetOutputProperty (ClientPtr client)
|
|||
swapl(&reply.nItems, n);
|
||||
}
|
||||
WriteToClient(client, sizeof(xRRGetOutputPropertyReply), &reply);
|
||||
return(client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
if (prop->immutable && stuff->delete)
|
||||
|
|
@ -678,7 +678,7 @@ ProcRRGetOutputProperty (ClientPtr client)
|
|||
swapl(&reply.nItems, n);
|
||||
}
|
||||
WriteToClient(client, sizeof(xRRGetOutputPropertyReply), &reply);
|
||||
return(client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -753,6 +753,6 @@ ProcRRGetOutputProperty (ClientPtr client)
|
|||
*prev = prop->next;
|
||||
RRDestroyOutputProperty (prop);
|
||||
}
|
||||
return(client->noClientException);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue