Xext: renaming shadowing variable
xvdisp.c: In function 'ProcXvStopVideo': xvdisp.c:712:11: warning: declaration of 'rc' shadows a previous local [-Wshadow] xvdisp.c:705:17: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
parent
7b79a2e4a1
commit
8bbea9f48f
|
@ -702,7 +702,7 @@ ProcXvUngrabPort(ClientPtr client)
|
||||||
static int
|
static int
|
||||||
ProcXvStopVideo(ClientPtr client)
|
ProcXvStopVideo(ClientPtr client)
|
||||||
{
|
{
|
||||||
int status, rc;
|
int status, ret;
|
||||||
DrawablePtr pDraw;
|
DrawablePtr pDraw;
|
||||||
XvPortPtr pPort;
|
XvPortPtr pPort;
|
||||||
|
|
||||||
|
@ -716,9 +716,9 @@ ProcXvStopVideo(ClientPtr client)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixWriteAccess);
|
ret = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixWriteAccess);
|
||||||
if (rc != Success)
|
if (ret != Success)
|
||||||
return rc;
|
return ret;
|
||||||
|
|
||||||
return XvdiStopVideo(client, pPort, pDraw);
|
return XvdiStopVideo(client, pPort, pDraw);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue