mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +00:00
dri2: declare variables when needed in dri2WakeClient()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
f1fd3151ec
commit
2e7d7cec64
1 changed files with 1 additions and 3 deletions
|
|
@ -163,12 +163,10 @@ dri2WakeClient(ClientPtr client, void *closure)
|
|||
static Bool
|
||||
dri2WakeAll(ClientPtr client, DRI2DrawablePtr pPriv, enum DRI2WakeType t)
|
||||
{
|
||||
int count;
|
||||
|
||||
if (!pPriv->blocked[t])
|
||||
return FALSE;
|
||||
|
||||
count = ClientSignalAll(client, dri2WakeClient, Wake(pPriv, t));
|
||||
int count = ClientSignalAll(client, dri2WakeClient, Wake(pPriv, t));
|
||||
pPriv->blocked[t] -= count;
|
||||
return count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue