mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 01:34:11 +00:00
dri2: declare variables where needed in DRI2Authenticate()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
bfa074f066
commit
95b9bf6dc3
@@ -1269,20 +1269,16 @@ DRI2AuthMagic (ScreenPtr pScreen, uint32_t magic)
|
||||
Bool
|
||||
DRI2Authenticate(ClientPtr client, ScreenPtr pScreen, uint32_t magic)
|
||||
{
|
||||
DRI2ScreenPtr ds;
|
||||
DRI2ClientPtr dri2_client;
|
||||
ScreenPtr primescreen;
|
||||
|
||||
if (!dixPrivateKeyRegistered(&dri2ScreenPrivateKeyRec))
|
||||
return FALSE;
|
||||
|
||||
dri2_client = dri2ClientPrivate(client);
|
||||
DRI2ClientPtr dri2_client = dri2ClientPrivate(client);
|
||||
|
||||
ds = DRI2GetScreenPrime(pScreen, dri2_client->prime_id);
|
||||
DRI2ScreenPtr ds = DRI2GetScreenPrime(pScreen, dri2_client->prime_id);
|
||||
if (ds == NULL)
|
||||
return FALSE;
|
||||
|
||||
primescreen = GetScreenPrime(pScreen, dri2_client->prime_id);
|
||||
ScreenPtr primescreen = GetScreenPrime(pScreen, dri2_client->prime_id);
|
||||
if ((*ds->AuthMagic)(primescreen, magic))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user