mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +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:
committed by
Enrico Weigelt
parent
f1fd3151ec
commit
2e7d7cec64
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user