mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +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
|
Bool
|
||||||
DRI2Authenticate(ClientPtr client, ScreenPtr pScreen, uint32_t magic)
|
DRI2Authenticate(ClientPtr client, ScreenPtr pScreen, uint32_t magic)
|
||||||
{
|
{
|
||||||
DRI2ScreenPtr ds;
|
|
||||||
DRI2ClientPtr dri2_client;
|
|
||||||
ScreenPtr primescreen;
|
|
||||||
|
|
||||||
if (!dixPrivateKeyRegistered(&dri2ScreenPrivateKeyRec))
|
if (!dixPrivateKeyRegistered(&dri2ScreenPrivateKeyRec))
|
||||||
return FALSE;
|
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)
|
if (ds == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
primescreen = GetScreenPrime(pScreen, dri2_client->prime_id);
|
ScreenPtr primescreen = GetScreenPrime(pScreen, dri2_client->prime_id);
|
||||||
if ((*ds->AuthMagic)(primescreen, magic))
|
if ((*ds->AuthMagic)(primescreen, magic))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user