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:
Peter Hutterer 2013-02-14 10:09:53 +10:00
parent 7b79a2e4a1
commit 8bbea9f48f

View File

@ -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);
} }